explain_impact
Trace the exact import chain from a changed source file to a test file to explain why the test is affected. Get the step-by-step import path.
Instructions
Finds the exact import chain that connects a changed source file to a test file. Use to answer: why does changing file X cause test Y to be affected? Returns the step-by-step import path from the test to the changed file.
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": {
"project_root": "<project_root>",
"changed_file": "<changed_file>",
"test_file": "<test_file>"
},
"name": "explain_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_file | Yes | The test file to explain the connection for | |
| changed_file | Yes | The source file that was changed (absolute or relative to project_root) | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |