Get import dependencies
get_depsMap import dependencies for a file or directory to reveal what it imports and what depends on it, supporting impact analysis before refactoring.
Instructions
Import graph for one file OR a whole directory/package: what it imports and who imports it. Directory mode aggregates edges (N files -> target). Use for impact analysis before refactoring ("what breaks if I change this package?").
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": "<file>"
},
"name": "get_deps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File or directory path relative to the repo root. | |
| direction | No | Which edges to show. | both |