Draw a mind map, flowchart or Gantt plan
import_mermaidDraw Mermaid flowcharts, mind maps, or Gantt charts onto a new or existing Slatebox slate as editable notes and lines, with an optional preview before saving.
Instructions
Draw an editable mind map, brainstorm, flowchart or project plan (Gantt chart) on a shared slate, from an outline written in Mermaid (flowchart/graph, mindmap or gantt), on a new slate or beside what an existing slate holds. Returns the slate link, where the team edits it live and can present it.
Draw Mermaid. Draw a Mermaid flowchart, mind map or Gantt chart as real notes and lines, laid out in the diagram's direction (subgraphs and Gantt sections become frames). With shareId the diagram is added beside what that slate holds (it needs edit access; everyone on the slate sees it drawn); without, it becomes a new private slate of yours named name (or the diagram's title). Mermaid in a Markdown ```mermaid block is read too. Instead of mermaid, outline takes plain lines (one item per line, indented for children; bullets, numbers and # headings are read) and draws them as a mind map with each item's words exactly as written. Another kind of diagram is refused with 422 mermaid_unsupported; a mistake with 400 mermaid_invalid naming its line; a diagram past a slate's limits (1,000 notes counting frames, 5,000 lines, frames 50 deep, or a subgraph too big for one frame) with 422 mermaid_too_large. mode "preview" shows what would be drawn without saving.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_mermaid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | With sync: the diagram as last synced (what the slate and the file last agreed on). Only what it names may be deleted. | |
| mode | No | save (the default) writes; preview returns what would change and saves nothing. The response says which happened. | save |
| name | No | The new slate's name (without shareId). | |
| sync | No | With shareId: read a flowchart back onto the slate it came from (canonical export, format names = note ids) instead of drawing it beside: new names are drawn, changed text and shapes updated, lines connected, disconnected or relabeled; nothing is moved. Notes and lines named in base that the diagram drops are deleted; notes added on the slate since are never touched. | |
| confirm | No | The confirmation id from a confirmation_required result, once the person agreed. | |
| mermaid | No | Mermaid source (flowchart/graph, mindmap or gantt), or Markdown holding a ```mermaid block. Give this or outline. | |
| outline | No | Instead of mermaid: an outline, one item per line, indented (spaces or tabs) for children; leading bullets and numbers are dropped and # headings nest by level. Drawn as a mind map (up to 20,000 characters and 1,000 items), each item's words kept exactly as written. Several items at the top go around a central idea named by name (or "Outline"). | |
| shareId | No | Add to this slate. Leave out to make a new private slate. | |
| projectId | No | Make the new slate in this project or folder (without shareId; you need to be an editor of it). | |
| idempotencyKey | No | Send with confirm: the idempotencyKey from the confirmation_required result. |