Search code
searchFind code by symbol name, keyword, or natural-language question across AST chunks; returns ranked file:line ranges with matching lines.
Instructions
Hybrid code search over AST chunks (whole functions, methods, classes): symbol names, BM25 keywords and a local code embedding model, so identifiers and plain questions both work, e.g. "parseConfig", "refresh token expiry" or "where are failed requests retried". Returns ranked file:line ranges with the matching lines.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| path | No | Only files whose path starts with or contains this. | |
| root | No | Repository root. Defaults to the client's workspace root or the server's working directory. | |
| limit | No | Max results (default 10). | |
| query | Yes | ||
| format | No | text (default, compact, file:line cited) or json. | |
| include_tests | No | Default true (tests rank lower). |