Skip to main content
Glama

Set variable mode

figma_set_variable_mode
Idempotent

Pin a variable collection mode to frames, components, sections, or pages so Dark or Light displays inside them, or clear the pin to restore default inheritance.

Instructions

Show nodes in a chosen mode of a collection — Dark on this screen, Light on that one: frames, components, sections and pages pin a mode, and everything inside follows. Without it every node uses the collection's default mode, so a Dark mode can be created and valued and still never be seen. clear: true removes the pin (the node inherits again). The collection by id or name, the mode by name or id. Returns per-item results: items: [{ id, ok, error? }] — one item failing does not fail the call. Editors: Design; unverified: FigJam, Slides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoMode name or id, e.g. "Dark". Give this or `clear`.
clearNoRemove the pinned mode instead.
nodeIdsYes
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
collectionIdNo
collectionNameNoOr the collection's exact name.
idempotencyKeyNoCaller-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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond annotations: idempotentHint is declared but the description explains inheritance semantics, that clear:true removes the pin, that per-item results are returned and one item failing does not fail the whole call, and the editor-support caveat (Design yes; FigJam/Slides unverified). This is rich, non-redundant behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then inheritance rationale, then the clear escape hatch, then return shape and editor support. Dense but every clause carries load; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and no annotations covering return format, the description supplies return shape, failure semantics, inheritance rules, the clear path, and platform caveats. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 71% and the description adds meaning beyond it: collection may be given by id or name, mode by name or id, and clear:true removes the pin. The idempotencyKey retry semantics are left to the schema, so it does not fully cover the 7 params, but the description meaningfully compensates.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (pin/set a mode) and resource (nodes in a variable mode), and the opening sentence distinguishes it from the sibling family: figma_add_variable_mode creates modes, this one assigns an existing mode to nodes. An agent can route correctly without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the key context: without it every node uses the collection's default mode, so a Dark mode can exist but never render. This is a clear when-to-use signal. It lacks explicit named alternatives (e.g. 'to remove the pin use clear:true' is covered, but no pointer to sibling tools), so 4 not 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools