Dependency graph query
dep_graphQuery the import graph before refactoring to see what a file imports, which files depend on it, or generate a visual diagram with configurable depth.
Instructions
Query the internal import graph. mode=imports: what a file imports. mode=dependents: what imports it. mode=mermaid: a diagram — pass root (+depth, default 2) to walk outward from one file instead of dumping the whole graph, or scope to a path prefix. Run before refactoring a shared module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| root | No | mermaid: start file to walk out from (BFS). | |
| depth | No | mermaid: import hops to follow from root (default 2). | |
| scope | No | ||
| target | No |