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.
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) |