create_polygon_star
Add a polygon or star to a Figma canvas; set vertex count, inner radius for star sharpness, fill/stroke colors, and exact position.
Instructions
Create a new polygon or star in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| width | Yes | Width of the shape | |
| height | Yes | Height of the shape | |
| pointCount | Yes | Total vertex count (≥3). For stars, this is the number of points. | |
| innerRadius | No | 0.0–1.0, star sharpness (default: 1.0 = polygon). If < 1.0, pointCount must be even. | |
| 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 | |
| fillColor | No | Fill color in RGBA format | |
| strokeColor | No | Stroke color in RGBA format | |
| useAbsolutePosition | No | If true and parent is an auto-layout frame, forces absolute positioning to prevent layout shifts. |