figma_set_auto_layout
Configure Auto Layout on a Figma node by setting direction, spacing, padding, alignment, and FIXED/HUG/FILL sizing to control frame resizing and child arrangement.
Instructions
设置 Auto Layout。打开后要把横排全宽设 FIXED 或子项 FILL,否则会 HUG 变窄。
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": "figma_set_auto_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| padding | No | ||
| layoutMode | Yes | ||
| itemSpacing | No | ||
| verticalSizing | No | ||
| counterAxisAlign | No | ||
| horizontalSizing | No | ||
| primaryAxisAlign | No |