Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

set_image_fill

Sets a Figma node fill to base64-encoded image data, so generated PNG, JPEG, or WebP imagery can be placed directly on the canvas.

Instructions

Set a node's fill to a base64-encoded image. Use with image generation APIs (Replicate, fal.ai) to place rendered imagery directly on canvas.

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>",
      "base64": "<base64>"
    },
    "name": "set_image_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
base64YesBase64-encoded image data (PNG, JPEG, or WebP)
nodeIdYesFigma node ID
opacityNo
mimeTypeNoimage/png
scaleModeNoHow the image is scaled within the node boundsFILL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It states that the operation sets a node's fill, but it does not disclose whether an existing fill is replaced, what permissions are needed, size/format constraints, error behavior, or what the response contains.

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?

Two concise sentences front-load the operation and then provide the intended workflow context. There is no redundant wording or buried information.

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

Completeness2/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 annotations and no output schema, the definition is too thin. It names the purpose and a usage scenario but omits important mutation details such as replacement semantics, permission requirements, parameter meanings, and expected outcome.

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?

The schema documents the key payload parameters, including base64 data, nodeId, and scaleMode, at 60% coverage. The description reinforces that base64 image data is being applied to a node fill but adds no meaning for opacity, mimeType, or scaleMode beyond defaults and enums already present in the schema.

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: setting a node's fill to a base64-encoded image. It clearly distinguishes this from color or gradient fill siblings by specifying image-based fill content.

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 a clear usage context by naming image generation APIs such as Replicate and fal.ai and explaining the workflow of placing rendered imagery on canvas. It stops short of explicit exclusions or naming set_fill_color and set_gradient_fill as alternatives, so it is not fully prescriptive.

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