get_constraint
Retrieve constraint details for Figma nodes, including optional child nodes, to analyze and manage design layouts effectively. Supports batch processing for efficiency.
Instructions
Get constraints for one or more Figma nodes (optionally including children).
Returns: Array of constraint info for each node, including children if requested.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeChildren | No | If true, include constraints for all children of the node(s). | |
| nodeId | No | The ID of a single node to get constraints for. | |
| nodeIds | No | An array of node IDs to get constraints for in batch. |