grep_search
Find text or regex matches across project files using pure Node.js; skips binaries and cache directories and returns each match as path:line:content.
Instructions
Search text or regex across project files using pure Node.js (zero external rg dependency, skips binaries and cache dirs). Returns 'path:line:content'.
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": {
"rootDir": "<rootDir>",
"query": "<query>"
},
"name": "grep_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex pattern to find | |
| isRegex | No | ||
| rootDir | Yes | Absolute root directory to search | |
| fileGlob | No | * | |
| maxResults | No | ||
| excludeDirs | No | ||
| caseSensitive | No |