set_text_decoration
Set the text decoration of a Figma text node to underline, strikethrough, or remove decoration using the node ID.
Instructions
Set the text decoration 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>",
"textDecoration": "<textDecoration>"
},
"name": "set_text_decoration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| textDecoration | Yes | Text decoration type |