Create Text
create_textAdd text to Figma designs at specified coordinates with customizable font size, weight, and color. Attach text to a parent node.
Instructions
Create a text node with content and optional font size/weight/color.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| 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 | Semantic layer name for the text node | |
| parentId | Yes | Parent node ID to append the text to | |
| parentNodeName | No | Name of the parent node to verify against |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the created text node | |
| name | Yes | Name of the created text node |