create_polygon
Create a regular polygon in Figma by specifying position, size, number of sides, rotation, fill, and stroke.
Instructions
Create a new polygon (regular polygon) in Figma
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| name | No | Optional name for the polygon | |
| width | Yes | Width of the polygon bounding box | |
| height | Yes | Height of the polygon bounding box | |
| parentId | No | Optional parent node ID to append the polygon to | |
| rotation | No | Rotation angle in degrees | |
| fillColor | No | Fill color in RGBA format | |
| pointCount | No | Number of sides/points of the polygon (default: 3, min: 3). e.g., 5 for pentagon, 6 for hexagon | |
| strokeColor | No | Stroke color in RGBA format | |
| strokeWeight | No | Stroke weight |