figma_set_constraints
Set resize constraints on a Figma node to control its behavior when resized. Specify horizontal and vertical rules: MIN, MAX, CENTER, STRETCH, or SCALE.
Instructions
Set resize constraints for a node.
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>",
"horizontal": "<horizontal>",
"vertical": "<vertical>"
},
"name": "figma_set_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| vertical | Yes | ||
| horizontal | Yes |