Complete chunked media upload
complete_multipart_uploadAssemble uploaded chunks into a final media file once all parts are PUT and ETags collected. Verifies object, size, quota, and magic bytes, then records media; failed assembly aborts automatically.
Instructions
Complete a chunked upload: the server assembles the uploaded parts, verifies the stored object (existence, size, magic bytes, storage quota) and records the media file — same verification and response shape as finalize_media_upload. A failed assembly automatically aborts the upload. Use this when all parts of a chunked upload are PUT and their ETags collected.
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": {
"r2Key": "<r2Key>",
"uploadId": "<uploadId>",
"parts": "<parts>",
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"sizeBytes": "<sizeBytes>"
},
"name": "complete_multipart_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | Every uploaded part with its ETag. | |
| r2Key | Yes | The r2Key returned by create_multipart_upload. | |
| width | No | Pixel width (images/video). | |
| height | No | Pixel height (images/video). | |
| duration | No | Duration in seconds (video). | |
| fileName | Yes | Original file name. | |
| mimeType | Yes | File MIME type. | |
| uploadId | Yes | The uploadId returned by create_multipart_upload. | |
| sizeBytes | Yes | File size in bytes. |