create_rectangle
Generate and position rectangles in Figma using specified dimensions (width, height) and coordinates (x, y), with optional naming and parent node placement.
Instructions
Create a new rectangle in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | Yes | Height of the rectangle | |
name | No | Optional name for the rectangle | |
parentId | No | Optional parent node ID to append the rectangle to | |
width | Yes | Width of the rectangle | |
x | Yes | X position | |
y | Yes | Y 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"
}