create_frame
Generate one or more frame nodes in Figma documents with precise positioning, dimensions, and customizable properties like corner radius, fill, and stroke color. Supports single or multiple configurations for efficient design workflows.
Instructions
Creates one or more frame nodes in the specified Figma document. Accepts either a single frame config (via 'frame') or an array of configs (via 'frames'). Optionally, you can provide a name, a parent node ID, fill color, stroke color, stroke weight, and corner radius.
Corner radius can be:
A single number for uniform corners (e.g., 8)
An array of 4 numbers for individual corners [topLeft, topRight, bottomRight, bottomLeft] (e.g., [8, 8, 0, 0])
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the created frame node ID(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
frame | No | A single frame configuration object. Each object should include coordinates, dimensions, and optional properties for a frame including corner radius. | |
frames | No | An array of frame configuration objects. Each object should include coordinates, dimensions, and optional properties for a frame including corner radius. |