search_code
Perform a fast git grep inside the repository, allowing regex matching by default or substring search.
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": {
"name": "<name>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full name of the repository (owner/name) | |
| path | No | Directory or file path to limit the search scope | |
| query | Yes | Search pattern or query to pass to git grep | |
| ignoreCase | No | Ignore case distinctions in both the PATTERN and the input files (-i) | |
| contextLines | No | Print num lines of output context (-C) | |
| fixedStrings | No | Use fixed strings for patterns (don’t interpret pattern as a regex) (-F) | |
| extendedRegexp | No | Use extended regular expressions (-E) |