rotate_node
Rotate a Figma node by a clockwise angle. Set absolute rotation or add to current rotation with relative mode. Capable of rotating locked nodes.
Instructions
Rotate a node in Figma by a specified angle in degrees (clockwise). Use relative=true to add to the current rotation instead of setting an absolute value. Note: locked nodes can still be rotated — the Plugin API bypasses the UI lock by design.
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>",
"angle": "<angle>"
},
"name": "rotate_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to rotate | |
| angle | Yes | Rotation angle in degrees (clockwise) | |
| relative | No | If true, add angle to current rotation instead of setting absolute value (default: false) |