Talk to Figma MCP

by sonnylazuardi
Verified

create_text

Create a new text element in Figma

Input Schema

NameRequiredDescriptionDefault
fontColorNoFont color in RGBA format
fontSizeNoFont size (default: 14)
fontWeightNoFont weight (e.g., 400 for Regular, 700 for Bold)
nameNoOptional name for the text node by default following text
parentIdNoOptional parent node ID to append the text to
textYesText content
xYesX position
yYesY position

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fontColor": { "additionalProperties": false, "description": "Font color in RGBA format", "properties": { "a": { "description": "Alpha component (0-1)", "maximum": 1, "minimum": 0, "type": "number" }, "b": { "description": "Blue component (0-1)", "maximum": 1, "minimum": 0, "type": "number" }, "g": { "description": "Green component (0-1)", "maximum": 1, "minimum": 0, "type": "number" }, "r": { "description": "Red component (0-1)", "maximum": 1, "minimum": 0, "type": "number" } }, "required": [ "r", "g", "b" ], "type": "object" }, "fontSize": { "description": "Font size (default: 14)", "type": "number" }, "fontWeight": { "description": "Font weight (e.g., 400 for Regular, 700 for Bold)", "type": "number" }, "name": { "description": "Optional name for the text node by default following text", "type": "string" }, "parentId": { "description": "Optional parent node ID to append the text to", "type": "string" }, "text": { "description": "Text content", "type": "string" }, "x": { "description": "X position", "type": "number" }, "y": { "description": "Y position", "type": "number" } }, "required": [ "x", "y", "text" ], "type": "object" }