Set text content
figma_set_textReplaces a Figma text layer's characters and optionally updates text properties, with fonts loaded automatically. Use it to edit copy and styling by node ID without manual font setup.
Instructions
Replaces a text layer's characters (fonts are loaded automatically) and optionally its text properties.
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": {
"node_id": "<node_id>",
"text": "<text>"
},
"name": "figma_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| text | Yes | ||
| props | No | Plugin API properties to set, e.g. {"fills":"#FF5500","cornerRadius":8,"layoutMode":"VERTICAL","itemSpacing":12,"padding":[16,24],"primaryAxisAlignItems":"CENTER","layoutSizingHorizontal":"FILL","opacity":0.8,"effects":[{"type":"DROP_SHADOW","color":"#00000040","offset":{"x":0,"y":4},"radius":12,"spread":0,"visible":true,"blendMode":"NORMAL"}]}. Text: {"characters":"Hi","fontSize":16,"fontFamily":"Inter","fontStyle":"Bold","lineHeight":24}. Colors accept "#RRGGBB(AA)", "rgba()", or {r,g,b,a}. | |
| node_id | Yes | Node id, e.g. "12:345" (link form "12-345" also accepted) |