Media Upload URL
get_media_upload_urlAgent-direct upload, no human step. 1: get_media_upload_url({ domain, filename, content_type, size_bytes? }) returns { asset_id, upload_url, public_url, expires_in }. 2: HTTP PUT the raw bytes to upload_url with a matching Content-Type. 3: finalize_media_upload({ asset_id, domain }). For bytes with no public URL, or too big for upload_media URL mode (e.g. video over 200 MB). If the PUT fails with a network error (sandboxed or proxied agent), use upload_media interactive mode instead. Allowed: images, mp4/webm/quicktime, pdf, mp3/wav. Max 20 MB images, 50 MB PDF, 1 GB video. URL expires after expires_in seconds.
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": {
"domain": "<domain>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "get_media_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| title | No | ||
| domain | Yes | ||
| alt_text | No | ||
| filename | Yes | ||
| size_bytes | No | ||
| content_type | Yes |