Set the characters of a text layer
figma_set_textReplace the text of a specific Figma TEXT node with new characters, loading the required font first to prevent silent font substitution.
Instructions
Replaces the text of one TEXT node. The font is loaded first; a layer whose font is missing from this machine is refused rather than silently retyped in a substitute.
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>",
"text": "<text>"
},
"name": "figma_set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The new characters. | |
| nodeId | Yes | The TEXT node to retype. |