set_focus
Focus the Figma viewport on a specific node using its node ID. Optionally set a zoom level from 0.1 to 10 to control the view.
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 |
|---|---|---|---|
| zoom | No | Zoom level 0.1-10 | |
| nodeId | Yes | Node to focus on |