Add a rectangle
figma_create_rectangleCreate a rectangle in the current Figma file, with optional fill, size, position, corner radius, and parent container. Use it for dividers, bars, backgrounds, or placeholders; omit fill for an empty shape.
Instructions
Creates a rectangle. The workhorse shape: dividers, bars, backgrounds, placeholders. Omit the fill for an empty one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fill | No | Hex colour. Omit for no fill. | |
| name | No | ||
| width | No | Default 100. | |
| height | No | Default 100. | |
| parentId | No | Put it inside this node. Default: the current page. | |
| cornerRadius | No |