Create Shape
create_shapeCreate rectangles, ellipses, polygons, or stars in Figma, specifying position, size, fill/stroke colors, and shape-specific options such as arc angles, point count, and inner radius.
Instructions
Create a rectangle, ellipse, polygon, or star via type, with position/size and optional fillColor/strokeColor. Shape-specific params (arcData; pointCount/innerRadius) validated by type. pointCount = sides (polygon) or points (star), native count — no even-parity rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| name | No | Optional non-empty name for the shape | |
| type | Yes | The type of shape to create | |
| width | Yes | Width of the shape | |
| height | Yes | Height of the shape | |
| arcData | No | Optional arc data for creating arcs/donuts (ELLIPSE only) | |
| parentId | Yes | Parent node ID to append the shape to | |
| fillColor | No | Fill color in RGBA format | |
| pointCount | No | Number of sides (polygon) or points (star), ≥3. Required for POLYGON and STAR. | |
| innerRadius | No | 0.0–1.0, star sharpness (default: 1.0). STAR only. | |
| strokeColor | No | Stroke color in RGBA format | |
| parentNodeName | Yes | The parent node's current exact name, passed back verbatim from `node_info`. | |
| useAbsolutePosition | No | If true and parent is an auto-layout frame, forces absolute positioning to prevent layout shifts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the created shape | |
| name | No | Name of the created shape | |
| error | No | ||
| parentId | No | ID of the parent the node was placed into — confirm containment without a follow-up read |