set_image_fill_cached
Fills a Figma node with a local PNG/JPG/GIF image, caching the image by key so its bytes are sent only once.
Instructions
Fill a node with an image from a local file (PNG/JPG/GIF). The plugin caches each image by key, so the bytes travel only once.
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>",
"filePath": "<filePath>"
},
"name": "set_image_fill_cached"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| filePath | Yes | Absolute path to a local PNG/JPG/GIF | |
| scaleMode | No |