topology_explore
Explore a code symbol's neighbourhood to reveal what it calls, imports, inherits, or is referenced by. Trace dependencies and connections around any named symbol in the topology index.
Instructions
Bounded BFS neighbourhood around a named symbol in the topology index. NARROW IT FIRST on a large file or an unfamiliar language: include_source="none" returns names only (the default, "signatures", is several times larger), and depth=1 with max_nodes=15 answers "what touches this?" in a fraction of the default budget (depth 2, 50 nodes, 30000 bytes) — raise them once you know what you are looking for. Returns the centre node, neighbour nodes, and connecting edges up to depth/max_nodes/max_bytes. Reports truncation when limits are hit. Source is 'topology' (approximate — use LSP semantic tools for authoritative reference and definition lookups). Returns an error when topology is disabled or the symbol is not in the index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Optional node kind to disambiguate a shared name: function, method, type, class, constant, variable, field, … | |
| name | No | Symbol name or qualified name to explore. Must exist in the topology index. | |
| path | No | Optional file-path substring to disambiguate when several indexed symbols share this name (case-insensitive). | |
| depth | No | BFS depth from the centre node. Default 2, max 4. | |
| max_bytes | No | Approximate byte budget for neighbour data. Default 30000, max 100000. | |
| max_nodes | No | Maximum number of neighbour nodes to return. Default 50, max 200. | |
| edge_kinds | No | Optional filter on edge kinds: calls, imports, contains, defines, inherits, implements. | |
| include_source | No | How much source detail to include per symbol: none (name only), signatures (default), or snippets/full (signature plus docstring). Symbols are always returned whole — max_bytes truncates on symbol boundaries, never mid-function. | signatures |