set_constraints
Define horizontal and vertical constraints on a Figma node to control how it responds when its parent resizes.
Instructions
Set constraints for responsive behavior when parent is resized
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": "set_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to modify | |
| vertical | No | Vertical constraint (MIN=top, MAX=bottom) | |
| horizontal | No | Horizontal constraint (MIN=left, MAX=right) |