Create drawing
create_drawingCreates a new Excalidraw drawing from shapes, text, connectors, or a Mermaid flowchart, then returns its link; existing drawings cannot be edited.
Instructions
Creates a NEW drawing from simple elements and/or a Mermaid flowchart, and returns its link. What is in an existing drawing can't be changed.
Elements: shapes ("rectangle", "ellipse", "diamond") with an optional label; "text"; and "arrow" or "line" connectors that join shapes by id ("from", "to") or run between points ("start", "end"). Shapes and text without x/y are laid out automatically, in "direction", with arrows routed between them; labels wrap and shapes grow to fit. Auto-layout gives the cleanest diagrams: give x/y (top-left, pixels, y grows down) only for layouts a graph can't express, such as grids or timelines. Keep arrow labels to a few words; put detail in shape labels or a text note.
Mermaid: a "flowchart"/"graph" diagram, with node shapes, edge labels, dotted and thick edges, subgraphs (drawn as titled boxes), and node colors from "style id fill:#a5d8ff,stroke:#1971c2" lines (hex or named colors) (classDef and class are ignored). Other Mermaid diagram types are not supported. Both can be sent at once: they are laid out together, and arrows may join flowchart nodes by their Mermaid ids. Up to 500 elements in all, Mermaid nodes and edges included.
Colors: Excalidraw's palette reads best, e.g. backgrounds "#a5d8ff" (blue), "#b2f2bb" (green), "#ffec99" (yellow), "#ffc9c9" (red), "#d0bfff" (violet), "#e9ecef" (gray).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| space | No | Default "private". Ignored with folderId: a drawing takes its folder's Space. | private |
| mermaid | No | A Mermaid flowchart. | |
| elements | No | ||
| folderId | No | Put it in this folder (see list_folders). | |
| direction | No | Auto-layout flow: "TB" top to bottom (default), "LR" left to right, "BT", "RL". Default for Mermaid: its own header. |