Zoom to nodes
figma_zoom_toScrolls and zooms the Figma viewport to reveal specified nodes after building, so users see the result. Handles page switching and Slides focus.
Instructions
Scroll and zoom the viewport to show nodes — after building something, so the user sees it. zoom: "fit" (default) or a number as a string ("1" = 100%). Switches page if needed. In Figma Slides the nodes' slide (a slide given, else the one holding the first node) becomes the focused slide, and view switches between "grid" (every slide) and "single-slide" (the focused one); view alone needs no nodes. The result says which slide is focused and the view, or why the view did not change. Changes no design data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Figma Slides only: the grid of all slides, or one slide. | |
| zoom | No | "fit" or a zoom level like "1.5". | |
| nodeId | No | One node. | |
| nodeIds | No | Or several nodes (all on one page). | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. |