Convert to component
figma_convert_to_componentConvert an existing Figma node or frame into a reusable COMPONENT, preserving its properties and children, and return the new component ID.
Instructions
Turn an existing node (usually a frame) into a reusable COMPONENT, keeping its properties and children — the toolbar's Create component. The result has its own id (returned). A node that is already a component, or sits inside a component or instance, cannot be converted. To place copies afterwards use figma_create_instance. Editors: Design; unverified: Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Component name. Defaults to the node's name. | |
| nodeId | Yes | The node to convert. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| description | No | What the component is for — shown in the assets panel and Dev Mode. | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |