Update variable collection
figma_update_variable_collectionRename a Figma variable collection, rename or remove its modes, or hide the collection from publishing. Changes are validated before applying.
Instructions
Rename a variable collection, hide it from publishing, rename its modes (e.g. "Mode 1" → "Light"), or remove modes. Removing a mode deletes the value every variable holds for it — the result counts them per mode; the last mode is never removed. Everything is checked before anything changes. To add a mode use figma_add_variable_mode (paid plans). Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| removeModes | No | Mode names or ids. | |
| renameModes | No | ||
| collectionId | Yes | ||
| 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. | |
| hiddenFromPublishing | No |