Map repository (one-shot)
map_repoGenerate a downloadable architecture diagram from a repository in one call: scans code, builds an import graph, and renders Mermaid/DOT output with a facts summary.
Instructions
Point at a folder and get a downloadable architecture diagram in one call: runs scan + import-graph + render internally and returns the HTML path, a facts summary, and the draft diagram source inline. By default writes architecture.html plus the raw source (.mermaid or .dot) into the repo; pass outPath to write elsewhere. Use the granular tools (scan_repo, build_import_graph, generate_diagram, render_diagram) only when you need to compose the steps yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the repository root | |
| level | No | Diagram granularity (default 'high') | |
| format | No | Diagram notation: 'mermaid' (default; renders on GitHub) or 'dot' (Graphviz interop) | |
| outPath | No | Output base path (default: <repo>/architecture); .html and the raw source are written |