place_image
Insert a local PNG, JPG, GIF, or SVG into the Figma file open in Desktop: raster images become image fills (or fill a selected layer), while SVGs become editable vector layers.
Instructions
Put an image file from this computer into the file open in Figma Desktop: a PNG, JPG or GIF becomes a rectangle with the image fill (or the fill of the layer nodeId), and an SVG becomes editable vector layers. Use it for the project's own assets (logos, icons, photos) while designing; use_figma with figma.createImageAsync(url) takes images from the web. The new layer goes into parentId (default: the current page, right of its content), sized by width/height (one keeps the aspect ratio; default: the image's own size). Images larger than 4096 px on a side are scaled down by Figma.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Layer name (default: the file name). | |
| path | Yes | Path of the image file (absolute, or relative to the project). | |
| width | No | ||
| height | No | ||
| nodeId | No | Set the image as the fill of this layer instead of making a new one (not for SVG). | |
| fileKey | No | The key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used. | |
| parentId | No | Frame or group to put the new layer in. | |
| keepFills | No | With nodeId: add the image above the existing fills instead of replacing them. | |
| scaleMode | No | How the image fills the layer (default FILL). |