topology_explore
Explore a symbol’s connections in the topology graph, returning neighbour nodes and edges within a bounded search radius. Truncation is reported when limits are exceeded.
Instructions
Bounded BFS neighbourhood around a named symbol in the topology index. 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 |