create_component_from_node
Convert any eligible Figma node into a reusable component. Provide the node ID to receive the new component's ID in return.
Instructions
Convert an existing node into a component (figma.createComponentFromNode). The node cannot already be a component, component set, or instance, nor be nested inside one. Returns the new component's ID.
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 |
|---|---|---|---|
| nodeId | Yes | The ID of the node to convert into a component |