focus_viewport
Pan and zoom the Figma canvas to bring specific nodes into view, with optional selection for easier design editing.
Instructions
Pan and zoom the Figma canvas viewport to focus on specific nodes, with optional selection
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": {
"nodeIds": "<nodeIds>"
},
"name": "focus_viewport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | No | Whether to also select the nodes (default: true) | |
| nodeIds | Yes | Array of node IDs to focus and zoom into |