set_layout_mode
Configure a Figma frame's auto-layout direction and wrap behavior to control how child elements are arranged and flow within it.
Instructions
Set the layout mode and wrap behavior of a frame in Figma
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 |