Create polygon
figma_create_polygonDraw regular polygon shapes—triangles, diamonds, pentagons, hexagons—in Figma by setting point count, size, fill, stroke, and corner radius for badges and decorative geometry.
Instructions
A regular polygon — triangle (pointCount 3), diamond (4, rotated 45 with figma_rotate_nodes), pentagon, hexagon… Badges, play buttons, decorative geometry. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fill | No | ||
| name | No | ||
| width | Yes | ||
| height | Yes | ||
| sizing | No | How it sizes, as in Figma's panel: { "horizontal": "fill" } to take the parent column's width; "hug" fits content; "fixed" keeps the number. | |
| stroke | No | ||
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| parentId | No | ||
| pointCount | No | Sides, default 3. | |
| cornerRadius | No | Rounds the outer corners. | |
| strokeWeight | No | Default 1 when a stroke is given. | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |