topology_search
Search the code topology to find symbols, functions, types, and classes by name, identifier, signature, or docstring. Returns ranked results with kind, file path, and line range.
Instructions
Ranked FTS5 search over the topology index. Finds symbols, functions, types, classes, and other named entities by name, tokenised identifier (camelCase/snake_case), qualified name, signature, or docstring. Results include kind, file path, line range, match field, score, and optional snippet. Source is 'topology' (approximate; use search_in_files for exact filesystem matches). Code-structure corpus only — for ranked discovery that also spans docs and memories, use workspace_search (this tool is one of its backends). Returns a clear message when the index is disabled or empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Optional filter by node kinds: function, method, type, class, constant, variable, import, package, test. | |
| limit | No | Maximum number of results to return. Default 20. | |
| query | No | Search query. Terms are OR-matched against symbol names, tokenised identifiers (camelCase/snake_case split), qualified names, signatures, and docstrings. | |
| rerank | No | Re-rank FTS5 results by semantic similarity to the query (needs [semantics] enabled + an API key). Defaults to the [semantics].enabled config; pass false to force the plain FTS5 ranking, true to force re-rank when configured. | |
| language | No | Optional filter by language (e.g. 'go', 'python'). | |
| include_snippets | No | Include a short snippet showing the matching text. Default true. |