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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>",
"text": "<text>",
"parentId": "<parentId>",
"parentNodeName": "<parentNodeName>"
},
"name": "create_text"
}
}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 |