create_component_from_node
Convert an existing Figma node, such as a frame, into a main component, replacing it in place so it can be reused.
Instructions
Convert an existing node (e.g. a frame) into a Figma main Component. The node is replaced in place by the new 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>"
},
"name": "create_component_from_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the new component | |
| nodeId | Yes | The ID of the node to convert into a component |