set_constraints
Set horizontal and vertical constraints to control a Figma node's responsive behavior during layout resizing.
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 | |
| horizontal | No | Horizontal constraint | |
| vertical | No | Vertical constraint |