create_rectangle
Insert a rectangle into a Figma canvas at given x, y coordinates with custom width and height; optionally name it or attach to a parent node.
Instructions
Create a new rectangle in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| width | Yes | Width of the rectangle | |
| height | Yes | Height of the rectangle | |
| name | No | Optional name for the rectangle | |
| parentId | No | Optional parent node ID to append the rectangle to | |
| parentNodeName | No | Name of the parent node to verify against | |
| useAbsolutePosition | No | If true and parent is an auto-layout frame, forces absolute positioning to prevent layout shifts. |