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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to convert into a component |