figma_create_rectangle
Create a rectangle shape in Figma with customizable size, position, fill, stroke, and corner radius. Add it to a specific parent frame as part of your design.
Instructions
Create a rectangle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Rectangle | |
| width | Yes | ||
| height | Yes | ||
| opacity | No | ||
| parentId | No | ||
| fillColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| strokeColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| cornerRadius | No | ||
| strokeWeight | No |