set_image_fill
Sets an image fill on a Figma node using a local file path, remote URL, or base64 data, with an optional scale mode to control how the image fits.
Instructions
Set an image fill on a node from a local filePath, remote imageUrl, or base64 string.
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>"
},
"name": "set_image_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Target node ID | |
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| filePath | No | Local image file path on disk (PNG/JPG/WebP) | |
| imageUrl | No | HTTP/HTTPS image URL to fetch | |
| scaleMode | No | Image scaleMode (default FILL) | |
| imageBase64 | No | Raw or data-URI base64 image bytes |