Create Text
create_textInsert text into Figma designs with custom content, position, and optional font size, weight, and color, targeting a specific 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 | |
| name | No | Optional non-empty semantic layer name for the text node | |
| text | Yes | Text content | |
| fontSize | No | Font size, minimum 1 (default: 14) | |
| parentId | Yes | Parent node ID to append the text to | |
| fontColor | No | Font color in RGBA format | |
| fontWeight | No | Font weight: 100–900 in increments of 100 (default: 400) | |
| parentNodeName | Yes | The parent node's current exact name, passed back verbatim from `node_info`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the created text node | |
| name | No | Name of the created text node | |
| error | No | ||
| parentId | No | ID of the parent the node was placed into — confirm containment without a follow-up read |