Import image
figma_import_imagePlace an image into a Figma file from a URL, local path, or rendered layer; fill an existing node or create a rectangle with fit, crop, or tile scale modes.
Instructions
Place a picture: from a url (http/https, fetched by Figma), a local path inside the export directory or BRIDGE_EXPORT_ROOTS (read by the bridge), or renderNodeId: a layer of this file rendered to a picture inside Figma — a styleframe snapshotted into a storyboard thumbnail, a frame on a mood board. With nodeId it becomes that node's fill; otherwise a new rectangle at the image's own proportions (a render: the layer's own size), or width/height. scaleMode fill / fit / crop / tile. PNG, JPEG or GIF, at most 4096 px a side. To look at a layer yourself, figma_export_node returns its picture to you instead of placing it. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| url | No | ||
| name | No | ||
| path | No | A file inside an allowed root; relative paths resolve from the export directory. | |
| width | No | ||
| height | No | ||
| nodeId | No | Fill this existing node instead of creating a rectangle. | |
| sizing | No | How it sizes, as in Figma's panel: { "horizontal": "fill" } to take the parent column's width; "hug" fits content; "fixed" keeps the number. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| parentId | No | ||
| scaleMode | No | Default "fill". | |
| renderWidth | No | Pixel width of the render; its height follows the layer. Default twice the target's width, within 4096 px a side. | |
| cornerRadius | No | ||
| renderNodeId | No | A layer of this file to render as the picture. Not with `url` or `path`. | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |