tldraw_create_frame
Creates a frame shape as a container for organizing other shapes on a tldraw canvas, enabling structured layouts by reparenting shapes into it.
Instructions
Create a frame shape. Frames act as containers — other shapes can be reparented into them using tldraw_reparent_shapes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Frame height | |
| w | No | Frame width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| name | No | Frame label | |
| 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) |