set_layout_mode
Configure a frame's auto layout direction and wrapping to arrange children horizontally, vertically, or disable layout, with optional child wrapping.
Instructions
Set a frame's auto layout direction and wrap
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 | The ID of the frame to modify | |
| layoutMode | Yes | Layout mode for the frame | |
| layoutWrap | No | Whether the auto-layout frame wraps its children |