set_text
Replace the entire text content of a Figma TEXT node with new characters while preserving existing font and character styling.
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 |