search_code
Find where functions or classes are implemented by semantic query, returning file path and line range for each match so agents can locate the code handling a task.
Instructions
Semantic search inside the project's ingested code symbols (functions/classes/methods). Use for 'where is X implemented', 'which function handles Y'. Returns file path + line range per hit, with the indexing age.
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 |
|---|---|---|---|
| path | No | Optional: one file path | |
| limit | No | ||
| query | Yes |