configure_layout_constraints
Set auto-layout constraints on a container frame by configuring flex/grid display, direction, padding, gap, alignment, and sizing rules to control child element positioning.
Instructions
Configures auto-layout (Flex/Grid) rules, direction, padding, gap, alignment, and sizing constraints on a container frame.
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>",
"layout": "<layout>"
},
"name": "configure_layout_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional target file ID. | |
| layout | Yes | ||
| nodeId | Yes | Target container frame ID. |