create_frame
Creates the primary UI container for auto-layout. Optionally set size and position, then append to a parent or the current page.
Instructions
Create a frame — the primary container for UI and the only node that hosts auto-layout — optionally sized/positioned and appended to a parent (default: current page). Enable auto-layout afterwards with set_auto_layout; for a canvas-level grouping container use create_section instead. Returns { ok, nodeId, name, type }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Frame name | |
| width | No | Frame width (with height, resizes from default) | |
| height | No | Frame height (with width, resizes from default) | |
| parentId | No | Container node id to append into; omit for current page |