create_frame
Generate and position frames in Figma with customizable dimensions, fill and stroke colors, and optional parent node placement for structured design workflows.
Instructions
Create a new frame in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fillColor | No | Fill color in RGBA format | |
height | Yes | Height of the frame | |
name | No | Optional name for the frame | |
parentId | No | Optional parent node ID to append the frame to | |
strokeColor | No | Stroke color in RGBA format | |
strokeWeight | No | Stroke weight | |
width | Yes | Width of the frame | |
x | Yes | X position | |
y | Yes | Y position |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"fillColor": {
"additionalProperties": false,
"description": "Fill color in RGBA format",
"properties": {
"a": {
"description": "Alpha component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"b": {
"description": "Blue component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"g": {
"description": "Green component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"r": {
"description": "Red component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"r",
"g",
"b"
],
"type": "object"
},
"height": {
"description": "Height of the frame",
"type": "number"
},
"name": {
"description": "Optional name for the frame",
"type": "string"
},
"parentId": {
"description": "Optional parent node ID to append the frame to",
"type": "string"
},
"strokeColor": {
"additionalProperties": false,
"description": "Stroke color in RGBA format",
"properties": {
"a": {
"description": "Alpha component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"b": {
"description": "Blue component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"g": {
"description": "Green component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"r": {
"description": "Red component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"r",
"g",
"b"
],
"type": "object"
},
"strokeWeight": {
"description": "Stroke weight",
"exclusiveMinimum": 0,
"type": "number"
},
"width": {
"description": "Width of the frame",
"type": "number"
},
"x": {
"description": "X position",
"type": "number"
},
"y": {
"description": "Y position",
"type": "number"
}
},
"required": [
"x",
"y",
"width",
"height"
],
"type": "object"
}