search_code
Search a codebase by meaning using natural language queries. Returns matching code chunks with file paths and snippets, refreshing the index automatically for current results.
Instructions
Semantic search over a codebase by MEANING using local embeddings.
Ask in natural language: "where do we retry failed uploads?", "code that parses the
config file". Returns the best-matching chunks as path:start-end plus a snippet.
Refreshes the index first unless refresh=false.
NOT for exact identifiers or strings — use Grep for those.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| query | Yes | ||
| top_k | No | ||
| refresh | No |