figma_create_text
Generate Figma text nodes that adhere to your design system by specifying DS text style IDs and color variable paths, with fallback to raw font and color properties.
Instructions
Create a text node. For DS compliance, always pass textStyleId (a DS text style ID from figma_list_text_styles) AND fillVariable (a DS color variable path). Raw fontSize/fontWeight/lineHeight are accepted as fallbacks but DS styles are preferred.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content. | |
| parentNodeId | No | ||
| textStyleId | No | DS text style ID (e.g. "S:abc123,7649:603"). Use figma_list_text_styles to discover IDs. | |
| fillVariable | No | Color token path, e.g. "Colors/Text/text-primary". | |
| fillHex | No | Fallback hex color. | |
| fontSize | No | Fallback — prefer textStyleId. | |
| fontWeight | No | Fallback — prefer textStyleId. | |
| lineHeight | No | Line height in px. Fallback — prefer textStyleId. | |
| textAlignHorizontal | No | ||
| width | No | Fixed width — text wraps at this width. | |
| layoutGrow | No | ||
| layoutAlign | No | ||
| x | No | ||
| y | No |