set_layout_mode
Set a Figma frame's layout mode and wrap behavior. Specify horizontal or vertical arrangement, or disable layout, and control whether children wrap to the next line.
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 |