set_image_fill
Apply an image fill to a Figma node by providing a URL. Optionally set scale mode to fill, fit, crop, or tile.
Instructions
Set an image fill on a node from a URL
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>",
"imageUrl": "<imageUrl>"
},
"name": "set_image_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to set the image fill on | |
| imageUrl | Yes | The URL of the image to use as fill | |
| scaleMode | No | How to scale the image within the node | FILL |