figma_set_image_fill
Apply base64-encoded JPEG/PNG images as fills to one or more Figma nodes with configurable scale modes (FILL, FIT, CROP, TILE) via the Desktop Bridge plugin.
Instructions
Set an image fill on one or more Figma nodes. The imageData parameter accepts a base64-encoded image string (JPEG/PNG). The image is decoded in the browser bridge and passed as raw bytes to the Figma plugin. Requires Desktop Bridge plugin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeIds | Yes | Array of node IDs to apply the image fill to | |
| imageData | Yes | Base64-encoded image data (JPEG/PNG) | |
| scaleMode | No | How the image fills the node (default: FILL) |