Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Create a theme variant (e.g. dark mode)

figma_create_theme_variant

Clone Figma layers or screens as another theme by switching collection modes or rebinding color variables to a second collection; reports unbound colors so you can fix them.

Instructions

Clones layers (usually screens) as another theme. With mode, the clone switches the collection to that mode (paid plans with several modes). With to_collection, every color bound to from_collection is rebound to the same-named variable in to_collection (works on plans limited to one mode: keep a second collection such as "Tokens Dark" with identical names). Reports colors that were not bound to tokens, which will not change; run figma_bind_tokens on the source first. Clones inside auto layout flow after the original; a containing section grows to fit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "node_ids": "<node_ids>",
      "from_collection": "<from_collection>"
    },
    "name": "figma_create_theme_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
dxNoHorizontal offset of each clone (default 0)
dyNoVertical offset of each clone (default: height + 200)
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
modeNoMode of from_collection to switch the clones to
suffixNoAppended to clone names (default " (<mode or collection>)")
node_idsYes
shadow_alphaNoMultiply drop-shadow opacity (and make shadows black), e.g. 3 for dark themes
to_collectionNoCollection with the same variable names holding the variant values
from_collectionYesCollection the source layers are bound to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses cloning behavior, mode switching, variable rebinding, reporting of unbound colors, auto-layout flow behavior, and section growth. These details materially help an agent understand side effects and prerequisites.

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?

The description is dense but well structured: purpose first, then the two mechanisms, then caveats and side effects. Every sentence adds useful information without repetition.

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

Completeness4/5

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

For a complex nine-parameter mutation tool with no output schema, it covers the main behavior, prerequisites, and side effects well. It could say more about the return value and non-core parameters, but the definition is sufficient for correct invocation.

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?

The schema coverage is high, and the description adds relational meaning for `mode`, `from_collection`, and `to_collection`, including how names must match in the target collection. It does not add much for `dx`, `dy`, `suffix`, `shadow_alpha`, or `url`, but the schema already documents them.

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?

The description states a specific verb and resource: it clones layers as another theme variant, with two distinct implementation paths (mode and to_collection). It is clearly distinguishable from generic cloning or variable-creation siblings.

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?

It gives clear selection guidance between `mode` and `to_collection`, including plan limitations, and states a prerequisite to run figma_bind_tokens on the source first. It lacks explicit when-not-to-use guidance or a named alternative sibling tool, so it is strong but not complete.

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