set_image
Apply a base64-encoded image to a Figma node as a fill. Supports PNG, JPEG, GIF, WebP formats.
Instructions
Set an image fill on a node from base64-encoded image data. Supports PNG, JPEG, GIF, WebP. Max ~5MB after decode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to apply the image fill to | |
| imageData | Yes | Base64-encoded image data (PNG, JPEG, GIF, or WebP). Max ~5MB after decode. | |
| scaleMode | No | How the image is scaled within the node (default: FILL) |