module_route
Trace transitive dependency paths between two modules to understand how they are connected through imports. Output as text or diagram (Mermaid, DOT) for coupling analysis.
Instructions
Show the transitive dependency path(s) between two modules — how module A reaches module B through the import graph. Use to answer 'how does X depend on Y?', trace coupling, or generate a dependency diagram. format='mermaid'/'dot' emits a diagram; default text lists the hops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source module — the one whose dependencies are followed (name or path, e.g. "auth", "apps/api") | |
| to | Yes | Target module to reach | |
| all | No | Show all simple paths instead of just the shortest (default: false) | |
| maxPaths | No | Cap on number of paths returned (default: 50, max: 200) | |
| maxDepth | No | Cap on path length in hops (default: 20, max: 50) | |
| viaKind | No | Restrict traversal to a dependency kind (default: "all") | |
| format | No | Output format: "text" (default, hop listing), "json", "mermaid" or "dot" (dependency diagram) |