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.
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": "resize_node"
}
}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 |