Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_import_image

figma_import_image

Creates a rectangle in Figma filled with a base64 image, enabling direct image import into the live design file.

Instructions

Create a rectangle filled with a base64 image.

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": {
      "imageData": "<imageData>"
    },
    "name": "figma_import_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNo
widthNo
heightNo
parentIdNo
imageDataYes
scaleModeNo
screenKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a mutation (creating a node) and identifies the fill source, but says nothing about permission requirements, what happens if imageData is malformed or not decodable base64, how the rectangle is sized when width/height are omitted, or where it lands when parentId is absent.

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 zero filler. It is efficient rather than padded, though the brevity comes at the cost of the missing semantics noted elsewhere.

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?

Incorrect check: relative to a 9-parameter mutation tool with no annotations, no output schema, and no documented defaults, the definition is far from complete. An agent cannot determine required context (parentId/screenKey) or default sizing from it.

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 description coverage is 0% across 9 parameters, and the description only implicitly covers imageData ('base64 image') and vaguely gestures at rectangle dimensions. Nothing is said about x/y positioning, name, parentId nesting, scaleMode values (fill/fit/crop/tile), or what screenKey selects, so the description 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?

The description gives a specific verb and resource ('Create a rectangle') plus the material it is filled with ('base64 image'), which implicitly separates it from the plain figma_create_rectangle sibling. It stops short of naming that sibling or stating any distinguishing condition explicitly, so an agent must infer the difference from the wording alone.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over figma_create_rectangle, figma_create_frame, or figma_generate_screen. No prerequisites are mentioned either (e.g., whether a parentId or active screen/screenKey is needed), leaving routing entirely to inference.

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