tldraw_create_draw
Create freehand drawing shapes on a tldraw canvas by providing an array of points. Supports custom styling including dash, fill, size, color, and opacity.
Instructions
Create a freehand drawing shape from an array of points. Points are encoded into tldraw's internal format automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| dash | No | Dash style | draw |
| fill | No | Fill style (for closed shapes) | none |
| size | No | Stroke size | m |
| color | No | Stroke color | black |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| points | Yes | Array of points for the freehand stroke | |
| opacity | No | Opacity from 0 to 1 (default 1) | |
| isClosed | No | Whether the shape is closed | |
| 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) |