create_frame
Creates Figma frames with optional auto-layout, fill, stroke, corner radius, and parent assignment to structure layouts and place elements in targeted pages or frames.
Instructions
Create a frame (with optional auto-layout, fill, stroke, cornerRadius, and parentId).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Frame name | |
| width | No | ||
| height | No | ||
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| fillHex | No | Background fill color hex e.g. #FFFFFF | |
| parentId | No | Optional parent frame/page node ID | |
| strokeHex | No | Stroke color hex | |
| layoutMode | No | ||
| paddingTop | No | ||
| itemSpacing | No | ||
| paddingLeft | No | ||
| placeholder | No | Mark frame as a section placeholder (stored in pluginData with subtle dashed styling) | |
| clipsContent | No | ||
| cornerRadius | No | ||
| paddingRight | No | ||
| strokeWeight | No | ||
| paddingBottom | No | ||
| counterAxisAlignItems | No | ||
| primaryAxisAlignItems | No |