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
Name | Required | Description | Default |
---|---|---|---|
image | No | A single image configuration object. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties. | |
images | No | An array of image configuration objects. Each object should include at least one of url, imagePath, or imageData, plus optional coordinates and properties. |