set_text_style
Adjust line height, letter spacing, font size, weight, alignment, case, and decoration on a Figma text node by ID.
Instructions
Set advanced text styling properties (line height, letter spacing, etc.)
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_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to style | |
| fontSize | No | Font size in pixels | |
| textCase | No | Text case transformation | |
| fontWeight | No | Font weight (100-900) | |
| lineHeight | No | Line height (AUTO, or {value, unit}) | |
| letterSpacing | No | Letter spacing in pixels | |
| textDecoration | No | Text decoration | |
| textAlignVertical | No | Vertical text alignment | |
| textAlignHorizontal | No | Horizontal text alignment |