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.
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": {
"nodeId": "<nodeId>",
"imageData": "<imageData>"
},
"name": "set_image"
}
}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) |