search_code
Search a locally indexed codebase to retrieve ranked code snippets with file locations, filtered by repository, language, or path.
Instructions
Search indexed code and return ranked snippets with file locations.
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": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| repo | No | ||
| query | Yes | ||
| language | No | ||
| path_prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |