Grep
grepSearch file contents by regular expression or literal text, optionally narrowing by path and include glob, and return matching path:line: text results.
Instructions
Search file contents with a regular expression (or literal text). Narrow with path and include, e.g. include='*.ts'. Returns path:line: text.
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>"
},
"name": "grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| limit | No | ||
| include | No | ||
| literal | No | ||
| pattern | Yes | ||
| caseSensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |