Skip to main content
Glama
FigeloMCP
by mmonzera

set_image_fill

Sets an image fill on a Figma node using a local file path, remote URL, or base64 data, with an optional scale mode to control how the image fits.

Instructions

Set an image fill on a node from a local filePath, remote imageUrl, or base64 string.

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

Input Schema

NameRequiredDescriptionDefault
nodeIdYesTarget node ID
channelNoOptional Figma document channel, fileKey, or documentName when multiple Figma files are open
filePathNoLocal image file path on disk (PNG/JPG/WebP)
imageUrlNoHTTP/HTTPS image URL to fetch
scaleModeNoImage scaleMode (default FILL)
imageBase64NoRaw or data-URI base64 image bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it says nothing about what the write does to the node — whether it replaces existing fills, what happens on a failed remote fetch, or whether scaleMode defaults apply to existing fills. Only the bare mutation is conveyed, which is insufficient for an unannotated write tool.

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?

A single front-loaded sentence with no filler; the resource and the source options come first. It is arguably too terse for a mutation tool, but nothing is wasted or buried.

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?

With six parameters, no annotations, and no output schema, the definition should disclose more about the write's side effects and about the three unmentioned parameters (channel, scaleMode, nodeId targeting). The one-liner leaves the agent guessing on key behaviors for a mutating operation.

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 the baseline is 3; each parameter is already documented in the schema. The description adds only the framing that filePath/imageUrl/base64 are alternative sources, without clarifying mutual exclusivity or precedence among them, and never mentions channel or scaleMode.

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?

The description states a specific verb ('Set'), resource ('an image fill on a node'), and enumerates the three accepted image sources (filePath, imageUrl, base64). It is clearly distinguishable from read-oriented siblings like export_image or get_screenshot, though it does not name a sibling it might be confused with.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should supply nodeId plus one image source, and the three source types are implicitly interchangeable alternatives. There is no statement of when to prefer this over create_svg/create_rectangle with an image, no prerequisites (e.g., an active Figma connection or existing node), and no exclusions.

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