create_text
Create a text element in Figma with custom content, position, font, and alignment. Specify optional parent, width, and resize behavior.
Instructions
Create a new text element in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position (local coordinates, relative to parent) | |
| y | Yes | Y position (local coordinates, relative to parent) | |
| text | Yes | Text content | |
| fontSize | No | Font size (default: 14) | |
| fontWeight | No | Font weight (e.g., 400 for Regular, 700 for Bold) | |
| fontColor | No | Font color in RGBA format | |
| name | No | Optional name for the text node by default following text | |
| parentId | No | Optional parent node ID to append the text to | |
| textAlignHorizontal | No | Horizontal text alignment. Use RIGHT for Arabic/RTL text. | |
| textAutoResize | No | Text resize behavior. Use HEIGHT for fixed-width text that wraps. | |
| width | No | Fixed width for the text node. Use with textAutoResize HEIGHT for wrapping text within a specific width. |