set_layout_sizing
Set a child node's vertical and horizontal sizing in Figma auto-layout to FIXED, HUG, or FILL to control its behavior.
Instructions
Set how a child behaves in auto-layout.
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>"
},
"name": "set_layout_sizing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Child node | |
| vertical | No | Vertical sizing | |
| horizontal | No | Horizontal sizing |