create_polygon
Generate custom polygons in Figma using coordinates, dimensions, and optional styling like fill color, stroke color, and weight. Supports single or multiple polygons with node IDs returned.
Instructions
Creates one or more polygons in Figma. Accepts either a single polygon config (via 'polygon') or an array of configs (via 'polygons'). Optionally, you can provide a name, a parent node ID, fill color, stroke color, and stroke weight.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created polygon node ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
polygon | No | A single polygon configuration object. Each object should include coordinates, dimensions, and optional properties for a polygon. | |
polygons | No | An array of polygon configuration objects. Each object should include coordinates, dimensions, and optional properties for a polygon. |