Search files
code_grepFind matching lines under an address, as path and line number: a literal string unless regex, optionally with lines of context.
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>",
"path": "<path>",
"org": "<org>"
},
"name": "code_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | slug of the organization whose trees and sites to use. Required on every call, even when only one organization is listed; a path never names it. | |
| path | Yes | Where to search, <tree>:<path>; <tree>: is the whole tree. | |
| limit | No | At most this many matches. | |
| regex | No | Read pattern as a regular expression. | |
| context | No | Lines of context around each match. | |
| pattern | Yes | The text, or with regex a JavaScript regular expression. | |
| ignoreCase | No | Match regardless of case. |