create_text
Create a new text node on the current Figma page or inside a specific parent node. Automatically loads the font and returns the node ID and bounds for further editing.
Instructions
Create a new text node on the current page or inside a parent node. The font is loaded automatically before insertion. Returns the created node ID and bounds. Use set_text to update the content of an existing text node.
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": {
"text": "<text>"
},
"name": "create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in pixels (default 0) | |
| y | No | Y position in pixels (default 0) | |
| name | No | Node name shown in the layers panel (defaults to the text content) | |
| text | Yes | Text content to display | |
| fontSize | No | Font size in pixels (default 14) | |
| parentId | No | Parent node ID in colon format. Defaults to current page. | |
| fillColor | No | Text color as hex e.g. #000000 (default black) | |
| fontStyle | No | Font style variant e.g. 'Regular', 'Bold', 'Italic', 'Medium', 'SemiBold' (default Regular). Must match an available style for the chosen fontFamily. | |
| fontFamily | No | Font family name e.g. 'Inter', 'Roboto', 'SF Pro Display' (default Inter). Must be a font installed in Figma. |