add_elements
Insert shapes, arrows, text, and labels into a live Excalidraw room from compact specs, with optional links and server-chosen placement to prevent overlaps.
Instructions
Add elements to the drawing from compact specs. Shapes take x, y, width, height and an optional label. Arrows take start/end element ids (edges are computed) or absolute points. Any element may take a link (a URL), which makes it clickable on the canvas. Later specs may reference ids of earlier specs in the same call. Pass place instead of x and y to have the server find a free slot beside an element or inside a cluster, so two agents drawing at once never overlap; the result reports the coordinates it chose. The change reaches connected peers immediately and the room's stored copy shortly after; a result line beginning NOT PERSISTED means the stored copy is behind and the server is retrying in the background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elements | Yes |