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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>",
"x": "<x>",
"y": "<y>"
},
"name": "tldraw_create_frame"
}
}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) |