tldraw_create_text
Add text labels to a tldraw canvas, controlling position, content, font, size, color, alignment, and rotation.
Instructions
Create a text shape on the canvas.
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>",
"text": "<text>"
},
"name": "tldraw_create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| w | No | Width | |
| x | Yes | X position on canvas | |
| y | Yes | Y position on canvas | |
| font | No | Font style | draw |
| size | No | Text size | m |
| text | Yes | Text content | |
| color | No | Text color | black |
| scale | No | Text scale | |
| pageId | Yes | Target page ID (e.g. 'page:xxx') | |
| opacity | No | Opacity from 0 to 1 (default 1) | |
| autoSize | No | Auto-size width to fit text | |
| 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) | |
| textAlign | No | Text alignment | start |