searchCode
Perform lexical code search across indexed repositories, with optional filtering to a single repo for targeted results.
Instructions
Lexical code search via an embedded Zoekt index (lazy-started on
first call). repo, if given, is applied as a Zoekt r: query filter
scoping results to that one indexed repo; omitted, results span every
indexed repo.
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": {
"query": "<query>"
},
"name": "searchCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||