Finish Upload
finish_uploadFinalizes an upload after all files are PUT to their links by verifying each file's size and activating the asset. Use cancel=true to abort and remove uploaded files instead.
Instructions
Finish an upload started with upload_asset, after every file was PUT to its link: the server checks each file's size and makes the asset ready (asset_id). Calling it again after success returns the same asset.
With cancel=true it cancels instead and removes what was uploaded. If a file is missing or its size is wrong, it says so: PUT that file again (or cancel and start over if its link expired).
The server keeps no operation record of this call, so operation_status can't look it up and a repeated call runs again.
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": {
"upload_id": "<upload_id>"
},
"name": "finish_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancel | No | ||
| upload_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||