Draw a Mermaid diagram
draw_mermaidConverts Mermaid source into laid-out hand-drawn shapes on a shared whiteboard and returns node IDs so you can edit the diagram later.
Instructions
Draws Mermaid source as hand-drawn shapes, laid out for you. Supports flowchart/graph (shapes, labels, -->, -.->, ==>, -->|label|, &, chains, subgraphs), sequenceDiagram (participants, actors, ->> -->> -x -), notes, loop/alt/opt/par/critical/break blocks, autonumber), mindmap, erDiagram (entities with fields, cardinalities) and classDiagram (members, relationships). Returns ids keyed by node so you can edit_diagram it later.
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": {
"source": "<source>"
},
"name": "draw_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left edge on the board (default: to the right of what is already there) | |
| y | No | Top edge | |
| speed | No | How fast shapes appear, so people can follow along (default normal). instant for big changes nobody needs to watch | |
| source | Yes | Mermaid source | |
| replace | No | Shapes to delete first (a previous version), so the new one goes in their place. Prefer edit_diagram for changes. | |
| spacing | No | Gap multiplier, 0.5-3 (default 1) |