set_focus
Select a Figma node and scroll the viewport to it, switching pages first so cross-page results are shown. Use it to reveal a just-built or found node to the user.
Instructions
Select a single node and scroll the viewport to it. Switches to the node's page first, so this works with ids returned by a cross-page find_nodes. Use this to show the user what you just built or found.
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 |