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.
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 |