set_image_fill
Replace a Figma node's existing fills with an image from a local file path, URL, or base64 data. Choose a scale mode to control how the image fits.
Instructions
Fill a node in Figma with an image from a local file path, a URL, or base64 data (replaces the node's existing fills)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to fill | |
| imageUrl | No | Image URL, fetched by the MCP server (the Figma plugin cannot fetch arbitrary domains itself) | |
| imagePath | No | Absolute path to a local image file, read by the MCP server (preferred: keeps image bytes out of the model context) | |
| scaleMode | No | How the image fills the node (default: FILL) | |
| imageBase64 | No | Base64-encoded image data, with or without a data: URI prefix (only when the image exists nowhere else) |