topology_search
Find functions, types, classes, and other symbols in the code topology index using names, identifiers, signatures, or docstrings. Filter by kind and language to pinpoint relevant code locations.
Instructions
Ranked FTS5 search over the topology index. Narrow a broad query first: kinds, language, limit, include_snippets=false. 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. |