Create slot
figma_create_slotAdd a slot frame and SLOT property to a Figma component, letting each instance insert its own layers.
Instructions
Add a slot to a component: a frame that each instance fills with its own layers, plus the SLOT property that goes with it. Pass a component or one variant, not a set. layout horizontal or vertical (Figma refuses a grid on a slot). Fill it in an instance by creating content with parentId = the slot inside that instance; figma_reset_slot empties it again. figma_set_instance_properties cannot set a slot. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | e.g. "Content", "Actions". | |
| width | No | ||
| height | No | ||
| layout | No | Auto-layout direction of the slot. | |
| sizing | No | How it sizes, as in Figma's panel: { "horizontal": "fill" } to take the parent column's width; "hug" fits content; "fixed" keeps the number. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| componentId | Yes | A COMPONENT, or one variant of a set. | |
| 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. |