repo_search
Search tracked repository files with git grep to locate code by pattern before reading; returns path:line:text matches, is read-only, and skips untracked files.
Instructions
Search tracked files of the repo with git grep -n and return matching lines as 'path:line:text', or '(no match)'. Read-only. Use it to locate code before repo_read; untracked files are not searched and long output is truncated to the last 60 KB.
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": "repo_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | git grep pattern (basic regex, case-sensitive), e.g. 'def main' or 'TODO'. |