set_image_fill
Apply an image to a Figma node using a URL or base64 data, with options for scaling mode (fill, fit, crop, tile).
Instructions
Apply image to node from URL or base64 data
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>",
"imageSource": "<imageSource>",
"sourceType": "<sourceType>"
},
"name": "set_image_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to apply image to | |
| imageSource | Yes | Image URL or base64 data string | |
| sourceType | Yes | Source type: 'url' for image URL, 'base64' for base64 encoded data | |
| scaleMode | No | Image scaling mode (default: FILL) |