Skip to main content
Glama

create_rectangle

Define and insert rectangle shapes into a Figma document, specifying dimensions, position, and optional properties like name, parent node ID, corner radius, and fill/stroke colors. Supports single or multiple rectangle configurations.

Instructions

Creates one or more rectangle shape nodes in the specified Figma document. Accepts either a single rectangle config (via 'rectangle') or an array of configs (via 'rectangles'). Optionally, you can provide a name, a parent node ID to attach the rectangle(s) to, and a corner radius for rounded corners.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the created rectangle node ID(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rectangleNoA single rectangle configuration object. Each object should include coordinates, dimensions, and optional properties for a rectangle.
rectanglesNoAn array of rectangle configuration objects. Each object should include coordinates, dimensions, and optional properties for a rectangle.

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