Read a slate as Mermaid
export_mermaidRead a Slatebox slate as Mermaid text for docs or code; converts mind maps to mindmap, project plans to Gantt charts, and other diagrams to flowcharts.
Instructions
Read a slate as Mermaid text, to put a diagram in docs or code: a mind map as mindmap, a project plan as a Gantt chart, anything else as a flowchart.
To Mermaid. Write a slate you can open as Mermaid text: notes and lines as a flowchart (direction from the layout; shapes, labels, arrow ends and dashed, thick or hidden lines kept; a note drawn behind notes it holds becomes a subgraph of them; a workshop's lanes become subgraphs of cards), a mind map as a mindmap, a launch plan as a Gantt chart (format gantt, start is its first day). Returns the text, the same as a Markdown code block, and for a public slate its plain-text address (/slates/.mmd). A public slate reads without a token. What Mermaid cannot say is named in warnings: dashed lines are written as Mermaid's one broken style (dotted), a line with an arrow only at its start is written from its other end, and a line with an end on the open canvas is left out.
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": {
"shareId": "<shareId>"
},
"name": "export_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | A Gantt chart's first day, YYYY-MM-DD (default today). | |
| format | No | auto: a mind map that is one tree as mindmap, anything else as flowchart. | auto |
| styles | No | Also write each note's colors (style lines). | |
| shareId | Yes | The slate ID from its address: /canvas/<shareId>. | |
| canonical | No | Write the canonical flowchart a repository keeps: notes, frames and lines sorted by id, note ids as names, a fixed direction, and a first-line header "%% slatebox:<shareId> rev:<n> hash:<h>" (the hash changes only when the diagram does, never when notes move). slates.importMermaid with sync reads it back. | |
| direction | No | With canonical: the direction written. | LR |