affected_files
Find all files affected by a change to a specific file or symbol, including test files that cover the affected code. Use before running tests to identify which test files to execute.
Instructions
Find all files affected by a change to a specific file or symbol. Includes test files that cover the affected code. Use this before running tests to know which test files to execute.
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": "affected_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative path of the changed file (e.g., 'src/auth/token.ts') | |
| max_depth | No | Maximum traversal depth (default: 5) | |
| tests_only | No | Return only test files (default: false) |