export_arch_diagram
Exports the 'arch' slice of the current project (kind='arch' blocks + arch-sync/async/db/event/data dependencies) in a universal format. Supported formats: 'mermaid-c4' (Mermaid flowchart, ideal for a GitHub README) and 'plantuml-c4' (PlantUML with C4-Container macros, for a professional rendering). Returns the serialized content + metadata + stats (number of nodes / edges). Does not touch the other slices (org, ERD, ...). Also returns warnings naming WHAT THE FILE DOES NOT CARRY for this project (operational detail — region, capacity, cost, service objective; content blocks; people; progress status) — empty when there is nothing to report. The two formats do not lose the same things: 'plantuml-c4' carries the description of each block, 'mermaid-c4' does not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Output format. 'mermaid-c4' produces a Mermaid flowchart (rendered natively on GitHub/GitLab/Notion). 'plantuml-c4' produces a C4-PlantUML diagram (rendered on any PlantUML server). | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |