set_text_style
Updates typography and text box sizing on an existing Figma text node without replacing its content, including font, color, alignment, line height, and wrapping width.
Instructions
Modify typographic properties of an existing text node without replacing its content. Also use to set or update text box width and wrapping.
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 |
|---|---|---|---|
| width | No | Fix column width in px to enable wrapping | |
| height | No | Fix height in px (clips content) | |
| nodeId | Yes | Figma node ID | |
| fontSize | No | ||
| fillColor | No | ||
| fontStyle | No | e.g. Regular, Bold, Italic | |
| textAlign | No | ||
| fontFamily | No | ||
| lineHeight | No | Line height in pixels or 'AUTO' | |
| letterSpacing | No | Letter spacing in pixels | |
| textAutoResize | No |