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.
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. |