create_rectangle
Create a rectangle shape for solid fills, dividers, or color blocks in a Figma design. Specify size, position, and optional parent container.
Instructions
Create a rectangle, optionally sized/positioned and appended to a parent (default: current page). Useful for solid shapes, dividers, and color blocks; for a container that holds other layers use create_frame, and for placed bitmaps use import_image. Returns { ok, nodeId, name, type }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in the parent | |
| y | No | Y position in the parent | |
| name | No | Layer name | |
| width | No | Width in px | |
| height | No | Height in px | |
| parentId | No | Container node id; omit for current page |