zoom_to_fit
Adjust canvas zoom to fit selected nodes or the entire artboard into view. Specify node IDs to frame specific content, or omit to show all artboards.
Instructions
Automatically adjusts the canvas zoom level to fit a single node, multiple nodes, or the entire canvas into view.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "zoom_to_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional target file ID. | |
| nodeIds | No | Array of node IDs to frame. If omitted, fits all artboards. |