Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_set_fills

Sets fill colors on Figma nodes using hex values or binds design tokens through variable IDs for direct color and token-based fill updates.

Instructions

Set the fill colors on a node. Accepts hex color strings (e.g., '#FF0000') or variable IDs for design token binding. To bind a design token: use { type: 'SOLID', variableId: 'VariableID:8:2258' }. Get variableIds from figma_get_variables or figma_get_node_state. Use figma_resolve_variable to verify what color a token resolves to before binding.

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": {
      "nodeId": "<nodeId>",
      "fills": "<fills>"
    },
    "name": "figma_set_fills"
  }
}

Input Schema

NameRequiredDescriptionDefault
fillsYesArray of fill objects — each either a hex color or a variable binding
nodeIdYesThe node ID to modify

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the token-binding workflow and the recommended verification step, which is useful behavior beyond the schema, but it never states whether setting fills replaces the node's existing fills entirely or merges them, nor any permission requirements — the key destructive semantics for a mutation tool are left implicit.

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

Conciseness4/5

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

Four short sentences, front-loaded with the core action, then formats, then prerequisite tools. No filler, though the binding example slightly duplicates the schema's own example.

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

Completeness3/5

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

For a two-parameter mutation tool with no annotations and no output schema, the description covers input formats and token resolution adequately but omits replace-vs-append behavior and what the tool returns or confirms. Enough to call it correctly in the common case, not enough to predict side effects.

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

Parameters3/5

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

Schema description coverage is 100%, so both nodeId and the nested fill variants are already documented, including the hex/opacity constraints and the variableId example. The description restates the same { type: 'SOLID', variableId: ... } shape rather than adding new meaning, so the baseline 3 applies.

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

Purpose4/5

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

"Set the fill colors on a node" gives a specific verb plus resource, and the follow-up sentence distinguishes the two accepted value forms (hex string vs. variable binding). It is clear without opening the schema, though it does not explicitly separate itself from adjacent mutation tools like figma_set_image_fill or figma_set_strokes.

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?

Provides real workflow routing: fetch variableIds from figma_get_variables or figma_get_node_state, and verify resolution with figma_resolve_variable before binding. It gives no when-not guidance and never says how this differs from figma_set_image_fill, but the prerequisite chain is genuinely actionable.

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