grep_search
Search file contents under a specified path using plain text or regular expressions, with optional case-insensitive matching for targeted code and text lookups.
Instructions
Search file contents under a path. Prefer this over a shell grep.
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": {
"Path": "<Path>",
"Query": "<Query>"
},
"name": "grep_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Path | Yes | Absolute file or directory. | |
| Query | Yes | Text to find. A regular expression when IsRegex is true. | |
| IsRegex | No | Treat Query as a regular expression. | |
| CaseInsensitive | No | Ignore case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |