vectr_search
Find functions and classes by describing their behavior or concept. Returns file paths and line numbers using semantic and BM25 search.
Instructions
Use when you know WHAT you're looking for but not WHERE it is or WHAT it's called. Hybrid semantic + BM25 search — finds code by concept, behaviour, or description. Returns function/class bodies with file paths and line numbers. NOT when you already know the symbol name — use vectr_locate instead. NOT when you want call relationships — use vectr_trace instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language or code description of what you're looking for | |
| language | No | Filter to a specific indexed language (e.g. python, rust, c, zig). Any language the index contains is accepted; an unindexed language returns no results plus the list of indexed languages. | |
| n_results | No | Number of results to return (default: 5, max: 50). Prefer 1–2 for a specific symbol or single-answer lookup ("where is X defined", "the function that does Y") — the top hit is usually the answer and fewer results cost far fewer tokens. Widen to 5+ only for exploratory or survey queries where several distinct implementations are genuinely useful. |