Whiteboard diagrams

Shapes, connectors and free arrows, mind maps and frames for flows and structure.

Raw Markdown for agents: whiteboard_diagrams.md. MCP: read_docs("whiteboard_diagrams").

  • shape: shape rect|rounded|ellipse|diamond|triangle|parallelogram (default rounded), text (≤2000, Markdown as in read_docs("whiteboard")), size (default 16), align (center: vertically centered; left or right: top-aligned, a card with heading and list), font, icon, fill, stroke, status. Free size, default 200x120, which holds about 70 characters at size 16; per line fit about (w - 32) / (0.56 × size) characters, (h - 32) / (1.3 × size) lines (at 16: (w - 32) / 9 and (h - 32) / 21; headings take more). Text that does not fit returns a text_overflow warning. Use rect or rounded for steps, diamond for decisions, ellipse for start and end, parallelogram for input and output.
  • connector: from and to are each {id, side?} (side top|right|bottom|left| auto, default auto) or a free board point {x, y}; style arrow|line (default arrow); label ≤120 (e.g. "yes", "no"). Element ends must be on the connector's level; deleting an end element deletes the connector. Two free points make a plain arrow.
  • mindmap: items {id, text, parent} with exactly one root (parent null); the tree grows to the right and the server sizes it. To link nodes within one add, give your own ids: "it_" plus 8 characters 0-9a-z. Add a node later with {op:"add_item", id, item:{text, parent}}. Deleting a node hands its children to its parent; the root can go only with at most one child.
  • frame: title, icon, fill; a free-size section, always behind other elements. Put elements in with place {inside: frame_id}: they land on a free spot inside and the frame grows when full. Moving a frame moves what lies fully inside it; a progress with source = frame id counts their statuses.

Flows: place steps in a row with place {right_of, gap: 80} (or {below} for a vertical flow), then connect them; leave the gap so labels stay readable. Structure: one frame per section, frames side by side with right_of.

Example, a decision flow: {"document_id": "...", "ops": [ {"op": "add", "type": "shape", "shape": "ellipse", "text": "Order in", "w": 160, "h": 80}, {"op": "add", "type": "shape", "shape": "diamond", "text": "Paid?", "place": {"right_of": "$0", "gap": 80}}, {"op": "add", "type": "shape", "shape": "rounded", "text": "Ship", "place": {"right_of": "$1", "gap": 80}}, {"op": "add", "type": "connector", "from": {"id": "$0"}, "to": {"id": "$1"}}, {"op": "add", "type": "connector", "from": {"id": "$1", "side": "right"}, "to": {"id": "$2"}, "label": "yes"} ]}

Example, a mind map: {"op": "add", "type": "mindmap", "items": [ {"id": "it_root0001", "text": "Launch", "parent": null}, {"id": "it_mkt00001", "text": "Marketing", "parent": "it_root0001"}, {"text": "Ads", "parent": "it_mkt00001"}, {"text": "Sales", "parent": "it_root0001"}]}