Skip to main content
Glama

set_image

Idempotent

Insert or update images in Figma using URLs, local paths, or base64 data. Customize size, position, and parent node for single or multiple images. Returns node IDs for inserted images.

Instructions

Sets or inserts one or more images into Figma. Each image can be specified by a remote URL, a local file path, or a base64 data URI. Accepts either a single image config (via 'image') or an array of configs (via 'images'). You can customize size, name, and parent node.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the inserted image node ID(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNoA single image configuration object. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties.
imagesNoAn array of image configuration objects. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties.
Behavior4/5

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

Annotations provide rich behavioral details (e.g., idempotentHint: true, destructiveHint: false, edgeCaseWarnings), but the description adds value by specifying the return format ('Array of objects... with the inserted image node ID(s)'), which is not covered in annotations. It does not contradict annotations, and it complements them with output information, though it lacks details on error handling or performance beyond annotations.

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?

The description is appropriately sized and front-loaded, starting with the core action and key details. Sentences are efficient, but the return value explanation could be more integrated. There is no wasted text, though minor restructuring might improve flow, such as merging the return details with the main description for better cohesion.

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?

Given the complexity (2 parameters with nested objects, no output schema) and rich annotations, the description is mostly complete. It covers purpose, input flexibility, and return values, but lacks explicit usage context or error handling details that could enhance completeness. Annotations fill many gaps, making the overall context sufficient but not exhaustive.

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%, with detailed parameter documentation in the schema. The description adds minimal semantics beyond the schema, only clarifying that inputs can be 'a single image config (via 'image') or an array of configs (via 'images')' and listing sources (URL, file path, base64), which are already implied in schema descriptions. This meets the baseline for high schema coverage without significant added value.

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 clearly states the specific action ('Sets or inserts one or more images into Figma') and resource ('images'), distinguishing it from sibling tools like 'get_image' or 'export_node_as_image'. It specifies the scope (single or multiple images) and supported sources (URL, file path, base64), making the purpose unambiguous and distinct.

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?

The description implies usage context by mentioning 'into Figma' and listing input sources, but it does not explicitly state when to use this tool versus alternatives like 'set_node' or 'set_node_prop' for general node operations. No guidance is provided on prerequisites, such as needing an open Figma document or specific permissions, leaving usage context partially inferred.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server