Talk to Figma MCP

by sonnylazuardi
Verified

create_rectangle

Create a new rectangle in Figma

Input Schema

NameRequiredDescriptionDefault
heightYesHeight of the rectangle
nameNoOptional name for the rectangle
parentIdNoOptional parent node ID to append the rectangle to
widthYesWidth of the rectangle
xYesX position
yYesY position

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "height": { "description": "Height of the rectangle", "type": "number" }, "name": { "description": "Optional name for the rectangle", "type": "string" }, "parentId": { "description": "Optional parent node ID to append the rectangle to", "type": "string" }, "width": { "description": "Width of the rectangle", "type": "number" }, "x": { "description": "X position", "type": "number" }, "y": { "description": "Y position", "type": "number" } }, "required": [ "x", "y", "width", "height" ], "type": "object" }