create_c4_diagram_tool
Generate C4 architecture diagrams (context, container, component, deployment, dynamic) as Mermaid or PlantUML code from structured data.
Instructions
Create a C4 architecture diagram from structured data.
Generates diagram source code (Mermaid or PlantUML) from explicitly defined elements, relationships, and boundaries.
Args: diagram_type: C4 diagram type: context, container, component, deployment, or dynamic title: Diagram title elements: List of C4 elements, each with: type, alias, label, description, technology relationships: List of relationships, each with: source, target, label, technology, direction boundaries: List of grouping boundaries, each with: type, alias, label, element_aliases output_format: Output format: mermaid (default) or plantuml
Returns: Diagram source code in the requested format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| elements | Yes | ||
| boundaries | No | ||
| diagram_type | Yes | ||
| output_format | No | mermaid | |
| relationships | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |