Impact analysis — what depends on this file
impact_analysisIdentify all files that depend on a given file, directly or transitively, to reveal the blast radius of a code change.
Instructions
Find every file that transitively depends on a given file, directly or indirectly, up to a depth limit. Answers 'what could break if I change this file' — the main practical use case for an AI agent about to edit code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "impact_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative file path to analyze | |
| max_depth | No | How many hops to follow (default 5) | |
| graph_path | No | Path to a previously saved graph (default: .codegraph/graph.json) |