figma_upload_assets
Import local PNG, JPG, GIF or WEBP files into Figma as image-filled rectangles, or apply an image as the fill of an existing node—bridging local assets and your design file in one call.
Instructions
Import local image files (PNG/JPG/GIF/WEBP) into Figma as rectangles with an image fill, or apply one as the fill of an existing node.
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": {
"paths": "<paths>"
},
"name": "figma_upload_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| paths | Yes | Absolute paths of image files | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| parentId | No | Where to place new rectangles (default: current page) | |
| scaleMode | No | FILL | |
| targetNodeId | No | Apply the first image as this node's fill instead of creating a rectangle |