set_constraints
Apply layout constraints to nodes for pinning relative to parent. Choose vertical and horizontal settings like min, max, center, stretch, or scale.
Instructions
Set layout constraints (pinning behaviour) on one or more nodes relative to their parent.
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": {
"nodeIds": "<nodeIds>"
},
"name": "set_constraints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeIds | Yes | Node IDs in colon format e.g. ['4029:12345'] | |
| vertical | No | Vertical constraint: MIN (top), MAX (bottom), CENTER, STRETCH, or SCALE | |
| horizontal | No | Horizontal constraint: MIN (left), MAX (right), CENTER, STRETCH, or SCALE |