search
Find functions, classes, methods, or variables in source code using name, kind, or text search with filters for language, file patterns, and fuzzy matching.
Instructions
Search symbols by name, kind, or text. Use instead of Grep when looking for functions, classes, methods, or variables in source code. Supports kind/language/file_pattern filters. Set fuzzy=true for typo-tolerant search (trigram + Levenshtein). For natural-language / conceptual queries set semantic="on" (requires an AI provider configured + embed_repo run once). Set fusion=true for Signal Fusion — multi-channel ranking (BM25 + PageRank + embeddings + identity match) via Weighted Reciprocal Rank fusion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| kind | No | Filter by symbol kind (class, method, function, etc.) | |
| language | No | Filter by language | |
| file_pattern | No | Filter by file path pattern | |
| implements | No | Filter to classes implementing this interface | |
| extends | No | Filter to classes/interfaces extending this name | |
| decorator | No | Filter to symbols with this decorator/annotation/attribute (e.g. "Injectable", "Route", "Transactional") | |
| fuzzy | No | Enable fuzzy search (trigram + Levenshtein). Auto-enabled when exact search returns 0 results. | |
| fuzzy_threshold | No | Minimum Jaccard trigram similarity (default 0.3) | |
| max_edit_distance | No | Maximum Levenshtein edit distance (default 3) | |
| semantic | No | Semantic mode: auto (default — hybrid if AI available), on (force hybrid), off (lexical-only), only (pure vector). Requires AI provider + embed_repo for non-"off" modes. | |
| semantic_weight | No | Hybrid fusion weight in [0,1]. 0 = lexical only, 0.5 = balanced (default), 1 = semantic only. | |
| fusion | No | Enable Signal Fusion Pipeline — multi-channel WRR ranking across lexical (BM25), structural (PageRank), similarity (embeddings), and identity (exact/prefix/segment match). Produces better results than single-channel search. | |
| fusion_weights | No | Per-channel weights for fusion (auto-normalized). Defaults: lexical=0.4, structural=0.25, similarity=0.2, identity=0.15. | |
| fusion_debug | No | Include per-channel rank contributions in fusion results. | |
| limit | No | Max results (default 20) | |
| offset | No | Offset for pagination |