list_dependencies
Lists a module's import tree hop by hop: outgoing modules it uses or incoming modules that use it, showing how modules are wired together.
Instructions
Lists the import tree of one module, hop by hop: direction out is what the module uses, in is who uses it. Use it to see how modules are wired together. It gives no reasons and no reading order: before an edit use analyze_impact instead. module is a module ID or a file path as the other tools print it; depth is how many hops to follow, 2 by default and 0 for the module alone. Returns one line per edge, (dep A B :via imports :depth N) or (rdep A B ...). A long list stops at 200 items unless all is true. A name the graph does not hold is answered with an error line, with suggestions when similar names exist.
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": {
"module": "<module>"
},
"name": "list_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | List everything instead of stopping at 200 items. | |
| depth | No | How many hops to follow. | |
| module | Yes | Module ID or file path, as printed by other tools (e.g. src/billing/invoice). | |
| direction | No | out: what the module uses; in: who uses the module. | out |