pare-search

v0.24.2
io.github.Dave-London/pare-search Checked 11 hours ago Published 3 days ago

Pare Search ג€” Structured code search operations (ripgrep + fd) as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

find Find Files

Finds files and directories using fd with structured output. Returns file paths, names, and extensions.

ParameterTypeDescription
absolutePathbooleanReturn absolute paths instead of relative (--absolute-path)
changedWithinstringFilter by modification time (maps to --changed-within, e.g., '1d', '2h', '30min')
compactbooleanPrefer compact output
excludestringExclude entries matching this glob pattern (maps to --exclude, e.g., 'node_modules', 'dist')
extensionstringFilter by file extension (e.g., 'ts', 'js')
followbooleanFollow symbolic links (--follow)
fullPathbooleanMatch pattern against full path, not just filename (--full-path)
globbooleanUse glob pattern matching instead of regex (--glob)
hiddenbooleanInclude hidden files and directories (--hidden)
maxDepthnumberMaximum directory depth to search (--max-depth)
maxResultsnumberMaximum number of results to return (default: 1000)
noIgnorebooleanDon't respect .gitignore and other ignore files (--no-ignore)
pathstringDirectory to search in
patternstringRegex pattern to match file/directory names
sizestringFilter by file size (maps to --size, e.g., '+1m' for >1MB, '-100k' for <100KB)
typestringFilter by entry type: file, directory, symlink, executable, or empty

count Match Count

Counts pattern matches per file using ripgrep. Returns per-file match counts and totals.

ParameterTypeDescription
pattern *stringRegular expression pattern to count matches for
caseSensitivebooleanCase-sensitive search (default: true)
compactbooleanPrefer compact output
countMatchesbooleanCount per-occurrence matches instead of per-line counts (--count-matches)
fixedStringsbooleanTreat pattern as a literal string instead of regex (--fixed-strings)
globstringGlob pattern to filter files (e.g., '*.ts', '*.{js,jsx}')
hiddenbooleanSearch hidden files and directories (--hidden)
includeZerobooleanShow files with zero matches (--include-zero)
invertMatchbooleanCount non-matching lines instead of matching lines (--invert-match)
maxDepthnumberMaximum directory depth to search (--max-depth)
maxResultsnumberMaximum number of files to include in results — truncates per-file list to prevent excessive output in large repos
noIgnorebooleanDon't respect .gitignore and other ignore files (--no-ignore)
pathstringDirectory or file to search in
sortstringSort results: 'path' for alphabetical by file path, 'count' for descending match count
typestringFilter by file type (e.g., 'ts', 'js', 'py', 'rust'). Maps to --type TYPE.
wordRegexpbooleanOnly match whole words (--word-regexp)

jq JSON Processor

Processes and transforms JSON using jq expressions. Accepts JSON from a file path or inline string. Returns the transformed result.

ParameterTypeDescription
expression *stringjq filter expression (e.g., '.name', '.[] | select(.age > 30)')
argobjectNamed string variables for parameterized expressions (maps to repeated --arg NAME VALUE)
argjsonobjectNamed JSON variables for parameterized expressions (maps to repeated --argjson NAME VALUE)
compactbooleanPrefer compact output
compactOutputbooleanCompact output, no pretty-printing (--compact-output)
exitStatusbooleanUse jq exit status for boolean checks: exit 1 if last output is false/null (--exit-status)
filestringPath to a JSON file to process
indentnumberNumber of spaces for indentation (--indent)
inputstringInline JSON string to process (used when file is not provided)
joinOutputbooleanDon't print newlines between outputs (--join-output)
nullInputbooleanDon't read any input, useful for generating JSON from scratch (--null-input)
rawInputbooleanRead each line as a string instead of JSON (--raw-input)
rawOutputbooleanOutput raw strings without JSON quotes (-r flag)
slurpbooleanRead entire input into a single array, useful for JSONL or multiple objects (--slurp)
sortKeysbooleanSort object keys (-S flag)

yq YAML/JSON/XML/TOML Processor

Processes and transforms YAML, JSON, XML, TOML, and properties files using yq expressions. Accepts input from a file path or inline string. Returns the transformed result.

ParameterTypeDescription
expression *stringyq expression (e.g., '.name', '.items[] | .id', 'select(.enabled == true)')
compactbooleanPrefer compact output
evalAllbooleanEvaluate expression across all files (eval-all mode)
filestringPath to an input file to process
filesarrayMultiple file paths for eval-all mode (evaluates expression across all files)
inPlacebooleanEdit file in-place (-i flag). DANGER: modifies the file. Requires explicit opt-in.
indentnumberNumber of spaces for indentation (--indent)
inputstringInline YAML/JSON string to process (used when file is not provided)
inputFormatstringInput format (-p flag). Defaults to yaml.
noColorsbooleanDisable color output (--no-colors / -M flag). Defaults to true.
nullInputbooleanDon't read any input, useful for generating YAML from scratch (--null-input / -n)
outputFormatstringOutput format (-o flag). Defaults to yaml.
prettyPrintbooleanPretty print output (--prettyPrint / -P flag)
unwrapScalarbooleanUnwrap scalar values (remove quotes from strings) (--unwrapScalar)