Create Shape
create_shapeCreate geometric shapes in Figma by specifying type, position, size, colors, and shape-specific parameters like arc data or point count.
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 |
|---|---|---|---|
| type | Yes | The type of shape to create | |
| x | Yes | X position | |
| y | Yes | Y position | |
| width | Yes | Width of the shape | |
| height | Yes | Height of the shape | |
| name | No | Optional name for the shape | |
| parentId | No | Optional parent node ID to append the shape to | |
| parentNodeName | No | Name of the parent node to verify against | |
| useAbsolutePosition | No | If true and parent is an auto-layout frame, forces absolute positioning to prevent layout shifts. | |
| fillColor | No | Fill color in RGBA format | |
| strokeColor | No | Stroke color in RGBA format | |
| arcData | No | Optional arc data for creating arcs/donuts (ELLIPSE only) | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the created shape | |
| name | Yes | Name of the created shape |