Skip to main content
Glama

set_image

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

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.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "image": { "additionalProperties": false, "description": "A single image configuration object. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties.", "properties": { "height": { "description": "Optional. Height of the image. Must be between 1 and 10,000.", "maximum": 10000, "minimum": 1, "type": "number" }, "imageData": { "description": "Optional. Base64 data URI of the image. If provided, must be a non-empty string.", "maxLength": 10000000, "minLength": 1, "type": "string" }, "imagePath": { "description": "Optional. Path to the local image file. If provided, must be a non-empty string up to 500 characters.", "maxLength": 500, "minLength": 1, "type": "string" }, "name": { "description": "Optional. Name for the image node. If provided, must be a non-empty string up to 100 characters.", "maxLength": 100, "minLength": 1, "type": "string" }, "parentId": { "description": "Optional. Figma node ID of the parent. If provided, must be a string in the format '123:456'.", "pattern": "^\\d+:\\d+$", "type": "string" }, "url": { "description": "Optional. The URL of the image to insert. Must be a valid URL.", "format": "uri", "type": "string" }, "width": { "description": "Optional. Width of the image. Must be between 1 and 10,000.", "maximum": 10000, "minimum": 1, "type": "number" }, "x": { "default": 0, "description": "Optional. X coordinate for the image. Must be between -10,000 and 10,000. Defaults to 0.", "maximum": 10000, "minimum": -10000, "type": "number" }, "y": { "default": 0, "description": "Optional. Y coordinate for the image. Must be between -10,000 and 10,000. Defaults to 0.", "maximum": 10000, "minimum": -10000, "type": "number" } }, "type": "object" }, "images": { "description": "An array of image configuration objects. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties.", "items": { "$ref": "#/properties/image" }, "type": "array" } }, "type": "object" }

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