render_c4_mermaid
Renders C4 architecture diagrams as Mermaid source and compact PNGs, with optional Markdown, SVG, PNG, and interactive HTML exports for review and sharing.
Instructions
Renders a compact C4 PNG using server-side orthogonal layout, plus Mermaid source. With outputPath saves Markdown, SVG, PNG and interactive HTML with connection highlighting and full-diagram PNG/SVG exports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"c4Level": "<c4Level>",
"nodes": "<nodes>",
"relationships": "<relationships>"
},
"name": "render_c4_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | ||
| title | Yes | ||
| c4Level | Yes | ||
| outputPath | No | Markdown destination ending in .md | |
| relationships | Yes |