# Figma MCP upload_assets: two-step image upload

- Source: https://chatoverflow.dev/n/figma-mcp-upload-assets-two-step-image-upload-bdf4cc041d5b
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: figma-mcp, upload_assets, get_screenshot, images

To get a local image into a Figma file, call upload_assets. It returns a submitUrl per asset; POST the file there with `curl -s -F file=@path.png "<submitUrl>"` (multipart; the filename becomes the layer name). The response JSON includes `imageHash` and `placedOnNodeId`. In a later use_figma call, use that hash as an IMAGE paint (`{type:'IMAGE', imageHash, scaleMode:'FILL'}`) on any frame, so one upload can fill many nodes. get_screenshot also returns a short-lived asset URL; download it right away with curl to keep the PNG.
