pare-search
v0.24.2Pare 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.
search Code Search
Searches file contents using ripgrep with structured JSON output. Returns match locations with file, line, column, matched text, and line content.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern to search for |
caseSensitive | boolean | Case-sensitive search (default: true) |
compact | boolean | Prefer compact output |
fixedStrings | boolean | Treat pattern as a literal string instead of regex (--fixed-strings) |
followSymlinks | boolean | Follow symbolic links (--follow) |
glob | string | Glob pattern to filter files (e.g., '*.ts', '*.{js,jsx}') |
hidden | boolean | Search hidden files and directories (--hidden) |
invertMatch | boolean | Show lines that do NOT match the pattern (--invert-match) |
maxCount | number | Maximum matches per file to stop rg early (--max-count) |
maxDepth | number | Maximum directory depth to search (--max-depth) |
maxResults | number | Maximum number of matches to return (default: 1000) |
multiline | boolean | Allow patterns to span multiple lines (--multiline) |
noIgnore | boolean | Don't respect .gitignore and other ignore files (--no-ignore) |
path | string | Directory or file to search in |
sort | string | Sort results by the specified criterion (maps to --sort TYPE) |
type | string | Filter by file type (e.g., 'ts', 'js', 'py', 'rust'). Maps to --type TYPE. |
wordRegexp | boolean | Only match whole words (--word-regexp) |
find Find Files
Finds files and directories using fd with structured output. Returns file paths, names, and extensions.
| Parameter | Type | Description |
|---|---|---|
absolutePath | boolean | Return absolute paths instead of relative (--absolute-path) |
changedWithin | string | Filter by modification time (maps to --changed-within, e.g., '1d', '2h', '30min') |
compact | boolean | Prefer compact output |
exclude | string | Exclude entries matching this glob pattern (maps to --exclude, e.g., 'node_modules', 'dist') |
extension | string | Filter by file extension (e.g., 'ts', 'js') |
follow | boolean | Follow symbolic links (--follow) |
fullPath | boolean | Match pattern against full path, not just filename (--full-path) |
glob | boolean | Use glob pattern matching instead of regex (--glob) |
hidden | boolean | Include hidden files and directories (--hidden) |
maxDepth | number | Maximum directory depth to search (--max-depth) |
maxResults | number | Maximum number of results to return (default: 1000) |
noIgnore | boolean | Don't respect .gitignore and other ignore files (--no-ignore) |
path | string | Directory to search in |
pattern | string | Regex pattern to match file/directory names |
size | string | Filter by file size (maps to --size, e.g., '+1m' for >1MB, '-100k' for <100KB) |
type | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression pattern to count matches for |
caseSensitive | boolean | Case-sensitive search (default: true) |
compact | boolean | Prefer compact output |
countMatches | boolean | Count per-occurrence matches instead of per-line counts (--count-matches) |
fixedStrings | boolean | Treat pattern as a literal string instead of regex (--fixed-strings) |
glob | string | Glob pattern to filter files (e.g., '*.ts', '*.{js,jsx}') |
hidden | boolean | Search hidden files and directories (--hidden) |
includeZero | boolean | Show files with zero matches (--include-zero) |
invertMatch | boolean | Count non-matching lines instead of matching lines (--invert-match) |
maxDepth | number | Maximum directory depth to search (--max-depth) |
maxResults | number | Maximum number of files to include in results — truncates per-file list to prevent excessive output in large repos |
noIgnore | boolean | Don't respect .gitignore and other ignore files (--no-ignore) |
path | string | Directory or file to search in |
sort | string | Sort results: 'path' for alphabetical by file path, 'count' for descending match count |
type | string | Filter by file type (e.g., 'ts', 'js', 'py', 'rust'). Maps to --type TYPE. |
wordRegexp | boolean | Only 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | jq filter expression (e.g., '.name', '.[] | select(.age > 30)') |
arg | object | Named string variables for parameterized expressions (maps to repeated --arg NAME VALUE) |
argjson | object | Named JSON variables for parameterized expressions (maps to repeated --argjson NAME VALUE) |
compact | boolean | Prefer compact output |
compactOutput | boolean | Compact output, no pretty-printing (--compact-output) |
exitStatus | boolean | Use jq exit status for boolean checks: exit 1 if last output is false/null (--exit-status) |
file | string | Path to a JSON file to process |
indent | number | Number of spaces for indentation (--indent) |
input | string | Inline JSON string to process (used when file is not provided) |
joinOutput | boolean | Don't print newlines between outputs (--join-output) |
nullInput | boolean | Don't read any input, useful for generating JSON from scratch (--null-input) |
rawInput | boolean | Read each line as a string instead of JSON (--raw-input) |
rawOutput | boolean | Output raw strings without JSON quotes (-r flag) |
slurp | boolean | Read entire input into a single array, useful for JSONL or multiple objects (--slurp) |
sortKeys | boolean | Sort 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | yq expression (e.g., '.name', '.items[] | .id', 'select(.enabled == true)') |
compact | boolean | Prefer compact output |
evalAll | boolean | Evaluate expression across all files (eval-all mode) |
file | string | Path to an input file to process |
files | array | Multiple file paths for eval-all mode (evaluates expression across all files) |
inPlace | boolean | Edit file in-place (-i flag). DANGER: modifies the file. Requires explicit opt-in. |
indent | number | Number of spaces for indentation (--indent) |
input | string | Inline YAML/JSON string to process (used when file is not provided) |
inputFormat | string | Input format (-p flag). Defaults to yaml. |
noColors | boolean | Disable color output (--no-colors / -M flag). Defaults to true. |
nullInput | boolean | Don't read any input, useful for generating YAML from scratch (--null-input / -n) |
outputFormat | string | Output format (-o flag). Defaults to yaml. |
prettyPrint | boolean | Pretty print output (--prettyPrint / -P flag) |
unwrapScalar | boolean | Unwrap scalar values (remove quotes from strings) (--unwrapScalar) |