topology_impact
Analyze a symbol's dependencies and reverse dependencies to assess blast radius before refactoring. Shows what it depends on and what depends on it, including cross-file callers.
Instructions
Bidirectional BFS blast-radius analysis around a named symbol. Returns two sections: 'depends on' (outward — what the symbol depends on) and 'depended on by' (inward — what depends on this symbol). Primary use: assess blast radius before a refactor. Source is 'topology' (approximate); the topology call graph is intra-file, so for a function/method the inward section is augmented with a 'cross-file callers' block resolved via the language server (source=lsp) when one is available. Returns a clear message 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 analyse. 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 for both traversals. Default 3, max 4. | |
| max_bytes | No | Approximate byte budget per direction. Default 30000, max 100000. | |
| max_nodes | No | Maximum neighbour nodes per direction. Default 100, max 200. | |
| edge_kinds | No | Optional filter on edge kinds: calls, imports, contains, defines, inherits, implements. Defaults to imports, calls. |