Get upload URL
get_upload_urlCreate a presigned URL for uploading a local file with an HTTP PUT: an image, video, audio file, 3D model, font, ZIP archive (type zip) or render project ZIP (type project, for render_html_video and generate_html_video project_asset_id). Use it when the client can read the local file and make the PUT itself; publicly downloadable URLs should use upload_asset instead. The PUT must send exactly the returned headers (Content-Type, and Content-Length when bytes was given). Wait for the PUT to return 2xx before confirm_upload, which makes the asset usable; issuing the URL uploads nothing. The URL is valid for 15 minutes; unconfirmed uploads are discarded after 24 hours. Limits: images 30 MB, audio 200 MB, video 500 MB, 3D models 200 MB, fonts 20 MB, ZIPs and projects 1 GiB.
For voice cloning, purpose "voice_clone" is required and type must be "audio" (at most 100 MB). This creates a private recording and returns an asset ID for clone_voice, never a public audio URL.
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": {
"content_type": "<content_type>",
"type": "<type>"
},
"name": "get_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Asset name. | |
| tags | No | Tags for organizing the asset. | |
| type | Yes | Asset type; must match content_type. zip is an ordinary ZIP asset; project is a render_html_video project ZIP, kept private and reused by asset ID. | |
| bytes | No | Exact file size in bytes, when known; it is then part of the signed upload. confirm_upload checks the size limit either way. | |
| purpose | No | Use voice_clone for a private voice recording; returns an asset ID for clone_voice, never a public audio URL. | |
| filename | No | Original file name: picks the type when the browser reports a generic content_type (e.g. application/octet-stream for woff2), and is the name when name is omitted. | |
| description | No | Accepted for compatibility; not stored. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| content_type | Yes | MIME type, e.g. image/png, video/mp4, audio/mpeg, font/woff2, application/zip. With a generic type (application/octet-stream) the filename extension decides. |