Create Component Set
create_component_setCombine Figma components into a component set with property definitions (variants). Assign property values to each component to create a variant group in your design.
Instructions
Combine components into a component set (variants) with property definitions.
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": {
"components": "<components>",
"properties": "<properties>",
"parentId": "<parentId>",
"parentNodeName": "<parentNodeName>"
},
"name": "create_component_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | Yes | ID of the appendable parent container (frame, group, page, section, etc.) to place the set in; discover it with node_info | |
| components | Yes | Array of component objects | |
| properties | Yes | Array of property names (e.g. ['Size', 'State']) | |
| parentNodeName | Yes | The parent node's current exact name, passed back verbatim from `node_info`. | |
| componentSetName | No | Optional non-empty name for the component set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the created component set | |
| name | No | Name of the component set | |
| type | No | Node type (COMPONENT_SET) | |
| error | No | ||
| warning | No | Warning message if some properties could not be read | |
| parentId | No | ID of the parent the set was placed into — confirm containment without a follow-up read | |
| childCount | No | Number of variants in the set | |
| variantProperties | No | Variant properties definition |