Analyze change impact
localscope_impactIdentify which files and exported symbols break if you change or delete a target in your local repo. Uses the import graph to return direct and transitive dependents, entirely offline.
Instructions
Answer "where does X break if I change Y?" from the local import graph and symbol table — entirely offline.
Args:
target (string): file path relative to repo root (e.g. 'src/utils/parse.ts') OR a symbol name (e.g. 'parseConfig')
path (string): repo root previously indexed, default "."
max_depth (number): reverse-dependency walk depth 1-10, default 5
response_format ('markdown' | 'json'): default 'markdown'
Returns: Direct dependents (files importing the target), transitive dependents, and exported symbols at risk.
Use when: "what breaks if I refactor/delete this?", "who uses this function?". Requires localscope_index first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Repository path (must match a previously indexed root) | . |
| target | Yes | File path (e.g. 'src/utils/parse.ts') OR symbol name (e.g. 'parseConfig', 'UserService') | |
| max_depth | No | How deep to walk the reverse dependency graph | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |