set_image_fill
Replace a Figma node's fill with a PNG, JPEG, GIF, or WebP image supplied as base64, with WebP and unsupported inputs normalized to PNG locally.
Instructions
Replace a node fill with a PNG, JPEG, GIF or WebP supplied as base64. WebP and unsupported decodable inputs are normalized to PNG inside the local Figma plugin.
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>",
"base64": "<base64>"
},
"name": "set_image_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | ||
| nodeId | Yes | ||
| scaleMode | No | FILL | |
| sourceMimeType | No |