Create instance
figma_create_instancePlace a component instance in Figma using a local ID or a published library key, choosing a set variant when needed.
Instructions
Place an instance of a component, of a component set's default variant, or of the variant of a set you name. Local ids come from figma_get_local_components. A library component is placed by componentKey or componentSetKey: imported first, then placed (figma_import_library_assets imports several at once). Give exactly one of componentId, componentKey, componentSetKey. To change which component an existing instance shows, use figma_swap_component. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| 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. | |
| variant | No | For a set: which variant, e.g. "Size=Large, State=Hover". Default: the set's default variant. | |
| parentId | No | Defaults to the current page (in Slides: the focused slide). | |
| componentId | No | A COMPONENT or COMPONENT_SET id in this file. | |
| componentKey | No | A published library component's key. | |
| 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. | |
| componentSetKey | No | A published library component set's key. |