figma_reset_slot
Reset a slot on a component instance to its default empty state from the main component, restoring expected slot content and structure.
Instructions
Reset a slot on a component instance to its default (empty) state from the main component. Uses SlotNode.resetSlot().
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 |
|---|---|---|---|
| slotId | No | Direct SlotNode ID | |
| 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. | |
| slotName | No | Slot layer name on the instance | |
| instanceId | No | Instance ID — use with slotName when slotId is unknown |