create_text
Creates a text node with intelligent typography: font weight is automatically resolved from common terms. Supports customization of size, color, alignment, and more.
Instructions
Create text with design-intelligent typography. Font weight is auto-resolved (e.g. "bold" → "Bold", "600" → "Semi Bold").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content (use \n for line breaks) | |
| fontSize | No | Font size in px (default: 16) | |
| color | No | Text color hex (default: #ffffff) | |
| fontFamily | No | Font family (default: Inter) | |
| fontWeight | No | Weight: thin/light/regular/medium/semibold/bold/extrabold or 100-900 (default: Regular) | |
| textAlignHorizontal | No | Horizontal alignment | |
| textAlignVertical | No | Vertical alignment | |
| lineHeight | No | Line height in px or ratio (1.5 = 150%) | |
| letterSpacing | No | Letter spacing in px | |
| textDecoration | No | Text decoration | |
| textCase | No | Text case transform | |
| maxWidth | No | Maximum text width for wrapping | |
| parentId | No | Parent node ID |