set_text_align
Set the text alignment of a text node in Figma. Adjust horizontal alignment (LEFT, CENTER, RIGHT, JUSTIFIED) and vertical alignment (TOP, CENTER, BOTTOM). Use RIGHT for Arabic/RTL text.
Instructions
Set the text alignment of a text node in Figma. Use textAlignHorizontal RIGHT for RTL/Arabic text.
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_text_align"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| textAlignHorizontal | No | Horizontal text alignment (LEFT, CENTER, RIGHT, JUSTIFIED). Use RIGHT for Arabic/RTL text. | |
| textAlignVertical | No | Vertical text alignment (TOP, CENTER, BOTTOM) |