set_focus
Center the viewport on a specific node in the Figma canvas, with optional zoom adjustment.
Instructions
Focus viewport on a specific node.
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": {
"nodeId": "<nodeId>"
},
"name": "set_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Node to focus on | |
| zoom | No | Zoom level 0.1-10 |