create_element
Create Excalidraw shapes, arrows, and text in Obsidian diagrams, using design rules and auto-routing arrows to bound elements.
Instructions
Create a new Excalidraw element. ⚠️ BEFORE using this tool, call read_diagram_guide(template="...") to get design rules (colors, shapes, line types, anti-patterns). For arrows, use startElementId/endElementId to bind to shapes (auto-routes to edges).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| id | No | Custom element ID (optional, auto-generated if omitted). Use with startElementId/endElementId in batch_create_elements. | |
| text | No | ||
| type | Yes | ||
| width | No | ||
| height | No | ||
| opacity | No | ||
| fontSize | No | ||
| roughness | No | ||
| fontFamily | No | Font family: virgil/hand/handwritten (1), helvetica/sans/sans-serif (2), cascadia/mono/monospace (3), excalifont (5), nunito (6), lilita/lilita one (7), comic shanns/comic (8), or numeric ID | |
| strokeColor | No | ||
| strokeStyle | No | Stroke style: solid, dashed, dotted | |
| strokeWidth | No | ||
| endArrowhead | No | Arrowhead style at end: arrow, bar, dot, triangle, or null | |
| endElementId | No | For arrows: ID of the element to bind the arrow end to. Arrow auto-routes to element edge. | |
| startArrowhead | No | Arrowhead style at start: arrow, bar, dot, triangle, or null | |
| startElementId | No | For arrows: ID of the element to bind the arrow start to. Arrow auto-routes to element edge. | |
| backgroundColor | No |