Create Component Set
create_component_setCombine multiple components into a component set with property definitions to create and manage variants in Figma.
Instructions
Combine components into a component set (variants) with property definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | No | Parent frame to place the set in | |
| components | Yes | Array of component objects | |
| properties | Yes | Array of property names (e.g. ['Size', 'State']) | |
| parentNodeName | No | Name of parent node (required if parentId provided, for verification) | |
| componentSetName | No | Name for the component set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the created component set | |
| name | Yes | Name of the component set | |
| type | No | Node type (COMPONENT_SET) | |
| warning | No | Warning message if some properties could not be read | |
| childCount | No | Number of variants in the set | |
| variantProperties | No | Variant properties definition |