Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
polygonNoA single polygon configuration object. Each object should include coordinates, dimensions, and optional properties for a polygon.
polygonsNoAn array of polygon configuration objects. Each object should include coordinates, dimensions, and optional properties for a polygon.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server