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? }] }.
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": {
"fileKey": "<fileKey>"
},
"name": "upload_assets"
}
}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. |