create_polygon
Adds a polygon shape to Figma designs by specifying position, dimensions, number of sides, colors, and stroke properties for creating geometric elements.
Instructions
Create a new polygon in Figma
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "create_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position | |
| y | Yes | Y position | |
| width | Yes | Width of the polygon | |
| height | Yes | Height of the polygon | |
| sides | No | Number of sides (default: 6) | |
| name | No | Optional name for the polygon | |
| parentId | No | Optional parent node ID to append the polygon to | |
| fillColor | No | Fill color in RGBA format | |
| strokeColor | No | Stroke color in RGBA format | |
| strokeWeight | No | Stroke weight |