graph_export
Export a static architecture diagram from the dependency graph, grouped by semantic layer. Output formats: mermaid for README, SVG for standalone vector, HTML with legend.
Instructions
Export a static architecture diagram from the dependency graph. Groups files by semantic layer (Tools, Storage, Graph, Indexer, Analytics, API, Frontend, Backend, Security, Config) based on directory-name heuristics. Three output formats: mermaid (copy-paste in README, renders on GitHub/GitLab), svg (standalone dark-theme file), html (self-contained page with legend + download button). Requires a prior reindex. No API call needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: mermaid (default, copy into README), svg (standalone vector file), html (interactive dark-theme page) | |
| output_path | No | Absolute or relative path for the output file. Default: .vectors/graph-export.{md|svg|html} | |
| focus_dir | No | Only include files whose path contains this string (e.g., "src/graph"). Useful to zoom in on a sub-system. | |
| top_coupled | No | Limit diagram to the N most coupled files (sorted by in-degree + out-degree). Useful to reduce noise on large projects. | |
| exclude_isolated | No | Exclude files with no dependencies (in-degree = 0 and out-degree = 0). Default: true. |