upload_assets
Upload images or SVGs into a Figma file to get single-use upload URLs, then POST raw bytes to each URL to finalize the import.
Instructions
Do what: Uploads images (PNG, JPG, GIF, WebP) or SVGs into a Figma file. Returns single-use upload URLs. POST raw bytes to each returned URL. Expected output: { uploads: [{ uploadUrl, targetNodeId?, commitUrl? }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of upload URLs to create. | |
| fileKey | Yes | ||
| nodeIds | No | Target node IDs to set image fills on. | |
| scaleMode | No | FILL | |
| batchCommit | No | Set true only if calling commitUrl once after all uploads. |