create_polygon
Create a regular polygon in Figma by setting the number of sides and diameter, with optional fill, name, and parent node.
Instructions
Create a regular polygon.
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": {
"sides": "<sides>",
"size": "<size>"
},
"name": "create_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | Fill color | |
| name | No | Name | |
| size | Yes | Diameter | |
| sides | Yes | Number of sides (3=triangle, 5=pentagon, 6=hexagon, etc.) | |
| parentId | No | Parent node ID |