batch_search
Run up to 20 text, regex, glob, or read-only git searches in a single call to find matches across files and return consolidated results without repeated requests.
Instructions
Run 1-20 searches concurrently in one call: type text | regex | glob (list files) | git (read-only: status/diff/log/show/branch/rev-parse/ls-files/grep). Per query: path, glob filter, outputMode (content | files_with_matches | count), caseSensitive, contextLines, maxResults. Uses ripgrep when found on PATH, else a built-in Node scanner (skips .git, node_modules, dist and binary files). Output is capped by maxChars (<= 8800); overflow is spooled to a file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"queries": "<queries>"
},
"name": "batch_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Base directory for relative paths (default: router cwd). | |
| engine | No | auto = ripgrep when found on PATH, else the built-in Node scanner. | auto |
| queries | Yes | ||
| maxChars | No | Inline output cap (500..8800); overflow is spooled to a file. |