Get dependency graph
get_dependency_graphAnalyze a project's import/export structure and return a dependency graph to reveal file relationships, cycles, and hotspots.
Instructions
Read-only project architecture analysis: resolve imports/exports, expose a dependency graph, detect cycles, and rank inbound/outbound hotspots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Project directory | . |
| max_edges | No | Maximum import edges to return | |
| max_files | No | Maximum files to analyze | |
| max_type_edges | No | Maximum type-hierarchy edges to return | |
| max_type_nodes | No | Maximum type-hierarchy nodes to return | |
| include_external | No | Include unresolved external imports in the graph |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| schema_version | Yes |