tldraw_create_geo
Create geometric shapes in tldraw diagrams with 20 subtypes like rectangle, ellipse, star, and cloud. Supports text labels, custom colors, and rotation.
Instructions
Create a geometric shape. 20 subtypes available: rectangle, ellipse, triangle, diamond, pentagon, hexagon, octagon, star, rhombus, rhombus-2, oval, trapezoid, arrow-right, arrow-left, arrow-up, arrow-down, x-box, check-box, cloud, heart. Supports text labels inside the shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Height | |
| w | No | Width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| geo | No | Geometry subtype | rectangle |
| dash | No | Dash style | draw |
| fill | No | Fill style | none |
| font | No | Font for text label | draw |
| size | No | Size style | m |
| text | No | Text label inside the shape | |
| align | No | Horizontal text alignment | middle |
| color | No | Shape color | black |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| opacity | No | Opacity from 0 to 1 (default 1) | |
| isLocked | No | Whether the shape is locked (default false) | |
| parentId | No | Parent frame or group ID for nesting | |
| rotation | No | Rotation in radians (default 0) | |
| labelColor | No | Label text color | black |
| verticalAlign | No | Vertical text alignment | middle |