search_code
Performs semantic search over code and docs to find code by meaning, not exact text. Returns file path, line numbers, symbol, score, and snippet with optional path prefix.
Instructions
Semantic search over this repo's code and docs. Finds code by meaning (e.g. "where do we refuse a mismatched database"), not just exact text — use it before falling back to grep. Returns JSON: file_path, start/end lines, symbol, score, snippet. Optional path_prefix restricts results to a subtree (e.g. "src/").
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 | ||
| query | Yes | ||
| path_prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |