tldraw_set_camera
Set the viewport position and zoom level for a specific page in a tldraw diagram.
Instructions
Set the camera (viewport) position and zoom level for a page.
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>"
},
"name": "tldraw_set_camera"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Camera X position | |
| y | No | Camera Y position | |
| z | No | Zoom level (1 = 100%) | |
| pageId | Yes | Page ID |