Semantic search
searchRun semantic similarity queries against indexed content, returning ranked chunks with paths, line ranges, scores, and text. Filter by path, language, or kind to find relevant code or notes.
Instructions
Run a semantic similarity query against indexed content. Returns ranked chunks with file path, line range, score (cosine similarity, 1 = identical), and text. Supports narrowing by path prefix, exact path, language, and content kind. Increase limit or use get_context when results look truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uris | No | Exact paths to restrict to. | |
| kinds | No | Content kind filter, e.g. ["file", "note"]. | |
| limit | No | Max results. Default 10. | |
| query | Yes | Natural-language query or search phrase. | |
| minScore | No | Drop results below this cosine score, e.g. 0.3 to cut noise. | |
| languages | No | Language filter, e.g. ["ru", "en"]. | |
| collection | No | Collection to search. Defaults to "default". | |
| includeText | No | Include chunk text in the response. Default true. | |
| uriPrefixes | No | Path prefixes to restrict to, e.g. ["src/", "docs/architecture"]. | |
| maxCharsPerChunk | No | Truncate each chunk's text to this many characters. Default 2000. |