Skip to main content
Glama
figma-forge-mcp

figma-forge-mcp

by TBlopT

set_image_fill_cached

Fills a Figma node with a local PNG/JPG/GIF image, caching the image by key so its bytes are sent only once.

Instructions

Fill a node with an image from a local file (PNG/JPG/GIF). The plugin caches each image by key, so the bytes travel only once.

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

Input Schema

NameRequiredDescriptionDefault
nodeIdYes
filePathYesAbsolute path to a local PNG/JPG/GIF
scaleModeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose a real behavioral trait beyond the schema by explaining key-based caching so image bytes are transmitted only once. It says nothing about whether an existing fill is replaced, whether the operation is idempotent, permission requirements, or failure behavior for unsupported/missing files.

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 short sentences, front-loaded with the action and resource, then the caching rationale. Every clause carries information; nothing is redundant padding.

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?

Three parameters, no annotations, no output schema, and low schema documentation make this a definition that should say more. The purpose and caching behavior are adequately covered, but scaleMode semantics and what happens on invalid input or overwrite are missing, leaving real gaps for a mutation tool.

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

Parameters2/5

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

Schema coverage is only 33%: filePath is documented, but nodeId and scaleMode are not. The description only restates the file formats already given in filePath's schema description and adds nothing about scaleMode's FILL/FIT/CROP/TILE semantics, its default, or what nodeId must reference, so it fails to compensate for the coverage gap.

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?

States a specific verb and resource: fill a node with an image from a local file, and names the accepted formats (PNG/JPG/GIF). It does not explicitly contrast with the sibling set_image_fill, so the differentiator (local file + key-based caching vs. whatever set_image_fill takes) is only implied by the caching sentence.

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 context is implied rather than stated: 'from a local file' hints this is the tool to reach for when the image exists on disk. There is no explicit when-to-use/when-not-to guidance and no named alternative such as set_image_fill, so an agent must infer the routing decision.

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