figma_add_slot_property
Add a SLOT component property to an existing frame and bind it as the slot content area, with optional description and preferred component values.
Instructions
Manually add a SLOT component property and bind it to an existing frame (alternative to figma_create_slot). The frame must be a direct child of the component, must not use GRID layout, and must not be nested inside another slot. Supports description and preferredValues.
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 |
|---|---|---|---|
| nodeId | Yes | COMPONENT or COMPONENT_SET node 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. | |
| description | No | Slot property description (SLOT-only) | |
| frameNodeId | Yes | Frame node ID to bind as the slot content area | |
| propertyName | Yes | Slot property name (e.g. 'Content') | |
| preferredValues | No | Preferred components for slot content (SLOT-only) |