group_node
Group or ungroup Figma nodes based on specified parameters using a boolean flag. Manage multiple nodes efficiently with optional naming support for organized design workflows.
Instructions
Groups or ungroups nodes in Figma, depending on the 'group' flag.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the result.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
group | Yes | If true, group nodes; if false, ungroup a group node. | |
name | No | Optional. Name for the group. If provided, must be a non-empty string up to 100 characters. | |
nodeId | No | The unique Figma group node ID to ungroup. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'. | |
nodeIds | No | Array of node IDs. Must contain at least 2 and at most 100 items. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"group": {
"description": "If true, group nodes; if false, ungroup a group node.",
"type": "boolean"
},
"name": {
"description": "Optional. Name for the group. If provided, must be a non-empty string up to 100 characters.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"nodeId": {
"description": "The unique Figma group node ID to ungroup. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'.",
"type": "string"
},
"nodeIds": {
"description": "Array of node IDs. Must contain at least 2 and at most 100 items.",
"items": {
"description": "A Figma node ID. Must be a string in the format '123:456' or a complex instance ID like 'I422:10713;1082:2236'.",
"type": "string"
},
"maxItems": 100,
"minItems": 2,
"type": "array"
}
},
"required": [
"group"
],
"type": "object"
}