get_dependencies
Identify all imports of a Python file (internal and external) and list files that depend on it, enabling impact assessment of code changes.
Instructions
Show what a file imports (internal vs external) and which files import IT (reverse dependencies / blast radius).
Use to gauge the impact of changing a module. Returns import edges with line numbers and the list of dependent files.
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": {
"path": "<path>"
},
"name": "get_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative .py file path. | |
| response_format | No | 'concise' or 'detailed'. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |