set_constraints
Define responsive constraints for a Figma node, controlling how it scales or anchors when the parent frame resizes. Choose vertical and horizontal behaviors to maintain layout stability.
Instructions
Set responsive constraints on 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>"
},
"name": "set_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Target node ID | |
| vertical | No | Vertical constraint | |
| horizontal | No | Horizontal constraint |