set_line_height
Set line height of a text node in Figma by specifying node ID, line height value, and unit type (pixels, percent, or auto).
Instructions
Set the line height of a text node in Figma
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>",
"lineHeight": "<lineHeight>"
},
"name": "set_line_height"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| lineHeight | Yes | Line height value | |
| unit | No | Unit type (PIXELS, PERCENT, or AUTO) |