Insert an image
figma_insert_imageInsert images into Figma from local paths, HTTPS URLs, or base64 as new rectangles, or fill existing layers by node ID.
Instructions
Places an image (from a local file path, an https URL, or base64) as a new rectangle, or as the fill of an existing layer (node_id).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_insert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| name | No | ||
| width | No | ||
| base64 | No | ||
| height | No | ||
| node_id | No | Fill this existing layer instead of creating a rectangle | |
| image_url | No | ||
| parent_id | No | Parent frame/group/page id; defaults to the current page | |
| image_path | No | ||
| scale_mode | No | FILL |