set_text_decoration
Apply underline, strikethrough, or no decoration to one or more Figma TEXT nodes, optionally within a character range, and get per-node success results.
Instructions
Set underline / strikethrough / none on one or more TEXT nodes (also text inside instances, e.g. 'I;'), optionally only for a character range [start, end). Reports per-node success.
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": {
"decoration": "<decoration>"
},
"name": "set_text_decoration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional end character index (exclusive) | |
| start | No | Optional start character index (inclusive) | |
| nodeId | No | ID of a single text node | |
| nodeIds | No | IDs of multiple text nodes | |
| decoration | Yes | Text decoration to apply |