set_text
Add text elements to Figma with precise positioning, styling, and optional bounded text boxes. Supports single or batch creation for efficient design workflows.
Instructions
Creates one or more text elements in Figma. Accepts either a single text config (via 'text') or an array of configs (via 'texts'). If 'width' and 'height' are provided, creates a bounded text box; otherwise, creates a regular text node.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created text node ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
text | No | A single text element configuration. Optional. | |
texts | No | An array of text element configurations for batch creation. Optional. |