semantic_search
Find code by meaning using natural language queries. Ranks results by semantic similarity, with fallback to lexical search.
Instructions
Find code by MEANING, not just name (e.g. "logic that decides trustee access"). Ranks nodes by embedding similarity; falls back to lexical search (with a hint) if embeddings aren't built.
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": "semantic_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repo root (defaults to cwd) | |
| type | No | Restrict to node types (component, function, file) | |
| limit | No | Max results (default 20) | |
| query | Yes | Natural-language description of what you are looking for |