Upload Asset
upload_assetUploads one illustration, logo, background, panorama, font, recording, image, video or audio asset. Maximum 25 MB per file. HTTPS URLs and base64 data are supported; local paths are npm/stdio-only. Returns a project-relative storage path and available media metadata. Font registration is enabled by default. Upload alone does not apply an asset to a design or change the project icon.
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": {
"projectId": "<projectId>",
"fileType": "<fileType>",
"source": "<source>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The file source — provide an HTTPS URL or base64 data, or a local file path for npm/stdio, with an appropriate filename. | |
| fileType | Yes | Use recording-library for device-only screen recordings (mockup-media is a legacy alias), promo-media for video/audio footage, font for TTF/OTF/WOFF/WOFF2, or an image category. Use list_video_recordings with includeMetadata to check a recording for cloud rendering. | |
| projectId | Yes | ||
| fontFamily | No | Font uploads only: family name to register instead of the one derived from the filename. Upload each weight file with the same fontFamily. | |
| registerFont | No | Font uploads only (default true): add the file to the project's custom fonts (metadata.customFonts) like the editor's font upload. Family, weight and style come from the filename (e.g. Inter-BoldItalic.ttf). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |