figma_append_to_slot
Add or clone content into a component instance slot, creating a new node when needed. Use this when slot content cannot be set through instance properties.
Instructions
Add content to a slot on a component instance. Clones sourceNodeId into the slot, or creates a new node (nodeType). SLOT content cannot be set via figma_set_instance_properties — use this tool instead. Widgets, stickies, and raw ComponentNodes cannot be appended to slots.
MULTI-FILE (Local Mode only): Pass fileKey to run this against a specific connected file without switching the active file/target lock (see figma_list_open_files). Does not change the active file or target lock. Cloud Mode pairs with a single plugin instance and rejects fileKey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clone | No | When using sourceNodeId, clone the node (default true). Set false to move. | |
| slotId | No | Direct SlotNode ID (from figma_get_slots) | |
| fileKey | No | Local Mode only. Run against this specific connected file instead of the active file. Does not change the active file or target lock. Get connected fileKeys from figma_list_open_files. Rejected in Cloud Mode, which pairs with a single plugin instance. | |
| nodeType | No | Create a new node in the slot instead of cloning | |
| slotName | No | Slot layer name on the instance (e.g. 'Content') | |
| instanceId | No | Instance ID — use with slotName when slotId is unknown | |
| properties | No | Properties for created nodes: name, text, width, height | |
| sourceNodeId | No | Node to clone into the slot (default: clone=true) | |
| clearExisting | No | Remove existing slot children before appending |