create_rectangle
Create a rectangle on the Figma page or inside a parent node, setting position, dimensions, fill color, and corner radius.
Instructions
Create a new rectangle on the current page or inside a parent node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (default 0) | |
| y | No | Y position (default 0) | |
| name | No | Rectangle name | |
| width | No | Width in pixels (default 100) | |
| height | No | Height in pixels (default 100) | |
| parentId | No | Parent node ID in colon format. Defaults to current page. | |
| fillColor | No | Fill color as hex e.g. #FF5733 | |
| cornerRadius | No | Corner radius in pixels |