set_image_fill_from_path
Import a local PNG, JPEG, GIF or WebP into a Figma node fill. Validated by binary signature and sent only to the open file for direct use.
Instructions
Import a local PNG, JPEG, GIF or WebP file into a node fill. The file is read only on this computer, validated by binary signature and sent only to the open Figma file.
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>",
"imagePath": "<imagePath>"
},
"name": "set_image_fill_from_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| imagePath | Yes | ||
| scaleMode | No | FILL |