create_text
Create a text element in Figma, configuring position, content, typography, color, alignment, and auto-resize for design-system consistency.
Instructions
Create a new text element in Figma. To match an existing design-system layer (e.g. a Poppins Bold card title), set fontFamily/fontStyle, textAlignHorizontal, width, and lineHeight to the target layer's values instead of relying on the Inter defaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| name | No | Semantic layer name for the text node | |
| text | Yes | Text content | |
| width | No | Fixed width in px; text reflows within this width (height stays auto unless textAutoResize is NONE/WIDTH_AND_HEIGHT) | |
| height | No | Fixed height in px (usually omit so height auto-fits) | |
| fontSize | No | Font size (default: 14) | |
| parentId | No | Optional parent node ID to append the text to | |
| fontColor | No | Font color in RGBA format | |
| fontStyle | No | Explicit font style, e.g. "Bold". Overrides fontWeight when set. | |
| fontFamily | No | Font family, e.g. "Poppins" (default: "Inter"). Falls back to Inter Regular if unavailable. | |
| fontWeight | No | Font weight (e.g., 400 for Regular, 700 for Bold). Ignored when fontStyle is provided. | |
| lineHeight | No | Line height in px (e.g. 35 to match sibling cards) | |
| textAutoResize | No | Auto-resize behavior for the text box | |
| textAlignHorizontal | No | Horizontal text alignment |