rotate_node
Rotate a specific Figma node by a defined angle around a chosen pivot point. Inputs include node ID, angle, and pivot type (e.g., center or custom coordinates). Returns rotated node details for precise design adjustments.
Instructions
Rotate a node in Figma.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the rotated node's ID, angle, and pivot info.
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 |
|---|---|---|---|
| angle | Yes | The rotation angle in degrees. Positive is clockwise. | |
| nodeId | Yes | The unique Figma node ID to rotate. | |
| pivot | No | The pivot point for rotation. Defaults to 'center'. | center |
| pivotPoint | No | Custom pivot point coordinates. Required if pivot is 'custom'. |