resize_node
Resize a Figma node by setting width and/or height. Choose TEXT auto-resize modes or force fixed size when needed.
Instructions
Resize a node. Width and/or height may be passed. For TEXT: WIDTH_AND_HEIGHT (hug) refuses resize — pass textAutoResize HEIGHT (width only) or NONE (fixed). Setting only width on hug auto-promotes to HEIGHT. Prefer set_layout_sizing for HUG/FILL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| nodeId | Yes | ||
| forceFixed | No | TEXT only: force textAutoResize NONE before resizing | |
| textAutoResize | No | TEXT only: WIDTH_AND_HEIGHT | HEIGHT | NONE | TRUNCATE |