style_text_range
Apply different font styles to specific character ranges within a Figma text node, controlling size, weight, color, and text decoration for each range.
Instructions
Apply mixed styling within a text node. Style specific character ranges differently.
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>",
"ranges": "<ranges>"
},
"name": "style_text_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Text node ID | |
| ranges | Yes | Array of { start, end, fontSize, fontWeight, color, textDecoration } |