ctx_impact
Assess the blast radius of changing a symbol or file before editing code. Get direct, indirect, and test impacts with import distances to identify what else needs updating.
Instructions
Analyze the blast radius of changing a symbol or file. Returns an ImpactReport: {target, target_symbol, depth, direct, indirect, tests, unknown} where direct/indirect/test lists are [{path, distance, symbols}]; unknown surfaces imports that could not be statically mapped. Use before modifying code to estimate what else must be checked or updated. Provide exactly one of symbol (a name) or path (a project-relative file); depth controls how many hops of indirect impact to traverse (default 3, 1-20). Requires the project to be indexed; returns an error object if the target is not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project-relative file path to analyze, as an alternative to symbol. | |
| depth | No | How many hops of indirect impact to traverse. Default 3. | |
| symbol | No | Symbol name to analyze. Provide this OR path, not both. |