CodeGraph: codegraph_impact
codegraph_impactIdentify which symbols are impacted when you change a symbol, helping you assess risk before refactoring and avoid breaking dependent code.
Instructions
List symbols affected by changing . Use before a refactor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Narrow to the definition in this file (path or suffix) when several same-named symbols exist | |
| depth | No | How many levels of dependencies to traverse (default: 2) | |
| symbol | Yes | Name of the symbol to analyze impact for | |
| projectPath | Yes | Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project). |