Generate Mermaid Diagram
sdd_generate_diagramGenerate a Mermaid diagram from a specification artifact, with support for 17 diagram types spanning software engineering.
Instructions
Generates a single Mermaid diagram from a specification artifact. Supports 17 diagram types: flowchart, sequence, class, ER, state machine, C4 context, C4 container, C4 component, C4 code, activity, use case, DFD (data flow), deployment, network topology, Gantt, pie chart, and mind map.
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": {
"diagram_type": "<diagram_type>",
"source": "<source>"
},
"name": "sdd_generate_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Which artifact to generate the diagram from. | |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| diagram_type | Yes | Type of Mermaid diagram to generate. 17 types covering all software engineering diagram categories. | |
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |