create_rectangle
Define and insert rectangle shapes into a Figma document, specifying dimensions, position, and optional properties like name, parent node ID, corner radius, and fill/stroke colors. Supports single or multiple rectangle configurations.
Instructions
Creates one or more rectangle shape nodes in the specified Figma document. Accepts either a single rectangle config (via 'rectangle') or an array of configs (via 'rectangles'). Optionally, you can provide a name, a parent node ID to attach the rectangle(s) to, and a corner radius for rounded corners.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created rectangle node ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
rectangle | No | A single rectangle configuration object. Each object should include coordinates, dimensions, and optional properties for a rectangle. | |
rectangles | No | An array of rectangle configuration objects. Each object should include coordinates, dimensions, and optional properties for a rectangle. |