create_frame
Create a new Figma frame, transparent by default for layout containers, with optional fills, auto layout, nesting, and child ordering.
Instructions
Create a new frame. Defaults to NO fill (transparent) — Figma's native white fill is cleared so layout containers stay invisible. Pass fillHex only when the frame is a visible surface (card, screen bg, chip). Nested into auto layout: omit x/y and omit width/height (do not ship at 320×200); pass parentNodeId + index + layoutSizing. Optional layoutMode (HORIZONTAL|VERTICAL|GRID).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | ||
| g | No | ||
| r | No | ||
| x | No | Parent-relative x. Ignored inside auto layout unless ignoreAutoLayout is true. | |
| y | No | ||
| name | No | ||
| index | No | Child index inside the parent. Use this to order items in auto layout. | |
| width | No | Omit for nested auto-layout wrappers so they hug/fill instead of shipping at 320×200. | |
| height | No | ||
| fillHex | No | Solid fill hex like #FFFFFF. Omit for transparent layout containers. | |
| opacity | No | ||
| layoutMode | No | NONE | HORIZONTAL | VERTICAL | GRID | |
| parentNodeId | No | ||
| keepDefaultFill | No | If true, keep Figma's default white fill. Prefer omitting fills instead. | |
| ignoreAutoLayout | No | If true, overlay with absolute x/y inside an auto-layout parent. | |
| layoutSizingVertical | No | FIXED | HUG | FILL | |
| layoutSizingHorizontal | No | FIXED | HUG | FILL |