Create Component
create_componentConvert a Figma frame into a main component to enable reuse and consistent design updates.
Instructions
Convert an existing frame into a main component.
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": {
"nodeId": "<nodeId>",
"nodeName": "<nodeName>"
},
"name": "create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the frame to convert to a component | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the created component | |
| name | No | Name of the created component | |
| error | No | ||
| parentId | No | ID of the parent the component was placed into — confirm containment without a follow-up read |