set_text_range_style
Style a selected range of a Figma text node—font family, size, case, decoration, hyperlink, and color-variable fill—or the whole text when no start and end are given.
Instructions
Style part of a text (start to end, default the whole text): text style, font family/style, size, decoration, case, fill bound to a COLOR variable, hyperlink URL.
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_range_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| nodeId | Yes | ||
| fontSize | No | ||
| textCase | No | ||
| fontStyle | No | ||
| hyperlink | No | ||
| textStyle | No | ||
| fontFamily | No | ||
| fillVariable | No | ||
| textDecoration | No |