Complete media upload
complete_media_uploadFinalize a staged media upload by confirming the file was PUT, then get a temporary media URL to pass to upload_video, upload_photos, or upload_document.
Instructions
Step 2 of staging a local file. Call it only after the file bytes were actually PUT to the upload_url from create_media_upload; without that PUT it fails or yields no publishable media. Returns a temporary media_url to pass straight to upload_video / upload_photos / upload_document.
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": {
"uploadId": "<uploadId>"
},
"name": "complete_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadId | Yes | upload_id returned by create_media_upload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |