set_text_decoration_range
Set style, color, thickness, and offset for text decoration on a specific text range in a Figma node.
Instructions
Set advanced text decoration properties (style, color, thickness, offset) for a text range
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>",
"start": "<start>",
"end": "<end>"
},
"name": "set_text_decoration_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End index of the range (exclusive) | |
| color | No | Decoration color | |
| start | Yes | Start index of the range (inclusive) | |
| style | No | Decoration style | |
| nodeId | Yes | The ID of the text node | |
| offset | No | Decoration offset | |
| skipInk | No | Whether decoration skips over descenders | |
| thickness | No | Decoration thickness |