Presign Media Upload
presign_media_uploadReserve image/video library files and return presigned PUT URLs. Upload each file's bytes to its uploadUrl with HTTP PUT and a Content-Type header equal to its declared mimetype, within 1 hour. A presigned URL alone is not a completed upload; get_media_file with verifyUpload=true reports whether the bytes are stored. If a PUT fails (for example, your environment cannot reach the upload host), delete the reserved files with delete_media, then call request_media_upload and show the user the ways it returns to add the files, easiest first. Reserved files whose bytes never arrive are removed after 6 hours.
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": {
"files": "<files>"
},
"name": "presign_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Image or video files to upload | |
| folderId | No | Optional destination media folder UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploads | Yes |