grep
Recursively search project files for regex pattern matches. Specify a file include filter and custom search path to narrow results.
Instructions
Search for a regex pattern in files (uses system grep -r -n).
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": {
"pattern": "<pattern>",
"project_path": "<project_path>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | File pattern e.g. *.py | |
| pattern | Yes | ||
| search_path | No | . | |
| project_path | Yes |