set_text
Replace text content in a Figma TEXT node while preserving existing fonts and character styling. Use for updating text without losing formatting.
Instructions
Replace the entire text content of a TEXT node; the plugin loads the node's current fonts first and preserves existing character styling where possible. For formatting (font, size, color, spacing) use set_text_properties, and to substitute text across many nodes use find_replace_text. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | TEXT node id to update | |
| characters | Yes | New text content |