analyze_impact
Lists files affected by a change, grouped by dependency depth with reasons and files to read first, to assess blast radius before editing.
Instructions
Lists what a change to one file reaches: the files that depend on it, grouped by depth, each with the reason it is on the list, then the files to read first. Use it before editing a file. For one function or type use find_usages; for the bare import tree of a module use list_dependencies. Input: target for one file, or targets for several in one call; each is a path relative to the repository root or a module ID, and depth is how many hops to follow (2 by default). Output: S-expression lines; with targets, one answer per file in the order given, after one line that says when the graph was built and how many changed files it misses. The list is complete: it never stops at 200 items, with or without all. It only reads the graph and changes nothing. A name the graph does not hold is answered with an error line, with suggestions when similar names exist.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Accepted for callers written for earlier versions; the answer lists every dependent either way. | |
| depth | No | How many hops to follow. | |
| target | No | File path relative to the repository root, or a module ID. | |
| targets | No | Several file paths or module IDs; one answer each, in this order, after a fact that says when the graph was built and how many changed files it misses. |