set_layout_mode
Set a frame's layout mode (NONE, HORIZONTAL, VERTICAL, GRID) and wrap behavior to control auto-layout. Use it to arrange children or enable GRID for cell-based layouts.
Instructions
Set the layout mode and wrap behavior of a frame: NONE, HORIZONTAL, VERTICAL, or GRID. GRID is a full cell-based layout — configure its tracks with set_grid_layout and place children with set_grid_child_position. layoutWrap (NO_WRAP | WRAP) applies to HORIZONTAL only. Empty wrappers strip leftover default white fill unless clearFill is false.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>",
"layoutMode": "<layoutMode>"
},
"name": "set_layout_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| clearFill | No | Default true for empty wrappers: strip leftover default white. | |
| layoutMode | Yes | ||
| layoutWrap | No |