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.
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 |