getImportTree
Generates a tree of local imports for a given file, helping to analyze dependencies and detect circular imports.
Instructions
Tree of local imports for a file. Useful for understanding deps and finding circular imports.
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": "getImportTree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| maxDepth | No | Max recursion depth (default: 3) | |
| includeExternal | No | Include external package imports (default: false) |