Move component to another file
move_component_to_fileMove a Figma component or component-set between connected files by importing it into a target channel and optionally deleting the source; use copy mode to keep the original.
Instructions
Import a component or component-set from this file into another connected channel's file, then optionally delete the source (move). Requires the target file to be open with the plugin connected to this server on a different channel (see figma_bridge_status / list_channels). Use mode: 'copy' to keep the source. Accepts componentId, componentKey, or componentName to identify the source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default 'move': delete the source after a successful import. 'copy' keeps it. | |
| name | No | New name for the imported component/component-set in the target file. | |
| componentId | No | Source component/component-set node id in this file. | |
| componentKey | No | Source component/component-set key (globally unique). | |
| componentName | No | Source component/component-set name in this file (must match exactly one). | |
| targetChannel | Yes | Channel name of the destination file (must be connected on this server). |