update_text_preserve_formatting
Update text in Figma without losing character formatting. Choose from three strategies to handle formatting when text length changes.
Instructions
Update text content while preserving existing character formatting. Choose a strategy for handling formatting when text length changes.
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>",
"newText": "<newText>"
},
"name": "update_text_preserve_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to update | |
| newText | Yes | The new text content | |
| preserveFormattingStrategy | No | Strategy for handling formatting when text length changes: 'stretch' proportionally extends formatting, 'repeat' repeats the pattern, 'reset_overflow' keeps existing formatting and uses defaults for new characters |