canvas_add_text
Add a free-floating text label to a canvas; long labels wrap at a specified width (default 400) so text stays readable instead of running across one line.
Instructions
Add a free-floating text label to a canvas. Long labels wrap at width (default 400) instead of running across the canvas on one line.
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": {
"canvas": "<canvas>",
"text": "<text>"
},
"name": "canvas_add_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| page | No | Tldraw page to target (name or page record id), for canvases with several pages — see canvas_read `pages`. Omit on single-page canvases. | |
| size | No | Text size: s, m (default), l, or xl | |
| text | Yes | ||
| graph | No | Graph name or nickname. Auto-selects if only one graph is configured. | |
| width | No | Wrap the text at this width in canvas units. Default: one line up to 400, then wrap at 400. | |
| canvas | Yes | Canvas page title (e.g. 'Canvas/My Map') or its 9-char page uid |