resize_node
Change a Figma node's width and height by specifying its node ID to update layouts, components, or frames through OpenCode Figma MCP.
Instructions
Resize a node in Figma
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>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | New width | |
| height | Yes | New height | |
| nodeId | Yes | The ID of the node to resize |