replace_image_fill
Replace an existing image fill on a Figma node with a new image from a URL or base64 data, preserving its current transform.
Instructions
Replace existing image on node with new image while preserving transform
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>",
"newImageSource": "<newImageSource>",
"sourceType": "<sourceType>"
},
"name": "replace_image_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node with image to replace | |
| newImageSource | Yes | New image URL or base64 data | |
| sourceType | Yes | Source type: 'url' or 'base64' | |
| preserveTransform | No | Preserve existing image transform (default: true) |