Set variable properties
figma_set_variable_propertiesUpdate Figma variable properties such as name, scopes, code syntax, description, and publishing visibility in bulk by ID or exact name, with per-item results.
Instructions
Change what a token carries besides its value: name (one variable only), scopes, codeSyntax ("" removes a platform), description, hiddenFromPublishing — on many variables at once, by id or exact name. Scopes are checked against each variable's own type. Values per mode: figma_set_variable_value. Returns per-item results: items: [{ id, ok, error? }] — one item failing does not fail the call. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rename — only when one variable is targeted. | |
| scopes | No | Which property pickers offer it. [] hides a primitive that is only aliased; semantic tokens name their fields, e.g. ["FRAME_FILL","SHAPE_FILL"] or ["GAP"]. Checked against the type; ALL_SCOPES stands alone. Default (omitted): Figma's ALL_SCOPES. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| codeSyntax | No | The name in code per platform, e.g. { "WEB": "var(--color-bg-brand)" }. "" removes that platform. | |
| description | No | ||
| variableIds | No | Give this or `variableNames`. | |
| variableNames | No | Exact full names, e.g. "color/bg/brand". | |
| 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 | Hide it when the file is published as a library. |