import_image
Import base64-encoded PNG or JPG images into Figma as rectangles with image fill. Specify position, size, and scale mode.
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.
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": {
"imageData": "<imageData>"
},
"name": "import_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (default 0) | |
| y | No | Y position (default 0) | |
| name | No | Node name | |
| width | No | Width in pixels (default 200) | |
| height | No | Height in pixels (default 200) | |
| parentId | No | Parent node ID in colon format. Defaults to current page. | |
| imageData | Yes | Base64-encoded image data (PNG or JPG) | |
| scaleMode | No | Image scale mode: FILL (default), FIT, CROP, or TILE |