canvas_add_geo
Add a plain tldraw geo shape, such as a rectangle or ellipse, with an optional centered label for general-purpose labeled boxes on a canvas.
Instructions
Add a plain tldraw geo shape (rectangle, ellipse, …) with an optional centered label. This is the general-purpose labeled box; discourse nodes belong in canvas_add_node.
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>",
"geo": "<geo>"
},
"name": "canvas_add_geo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Default 100 | |
| w | No | Default 200 | |
| x | No | ||
| y | No | ||
| geo | Yes | Geo style: rectangle, ellipse, triangle, diamond, pentagon, hexagon, octagon, star, rhombus, oval, trapezoid, arrow-right, arrow-left, arrow-up, arrow-down, x-box, check-box, cloud | |
| fill | No | none, semi, solid, or pattern (default none) | |
| 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 | Label text size: s, m (default), l, or xl | |
| text | No | Label centered in the shape | |
| color | No | black, grey, light-violet, violet, blue, light-blue, yellow, orange, green, light-green, light-red, or red (default black) | |
| graph | No | Graph name or nickname. Auto-selects if only one graph is configured. | |
| canvas | Yes | Canvas page title (e.g. 'Canvas/My Map') or its 9-char page uid |