import_image
Import base64-encoded PNG or JPG images into Figma as rectangle nodes with specified dimensions, positioning, and scale modes.
Instructions
Import a base64-encoded image into Figma as a rectangle with an image fill. Use get_screenshot to capture images or provide your own base64 PNG/JPG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Height in pixels (default 200) | |
| imageData | Yes | Base64-encoded image data (PNG or JPG) | |
| name | No | Node name | |
| parentId | No | Parent node ID in colon format. Defaults to current page. | |
| scaleMode | No | Image scale mode: FILL (default), FIT, CROP, or TILE | |
| width | No | Width in pixels (default 200) | |
| x | No | X position (default 0) | |
| y | No | Y position (default 0) |