Finish a large upload
assets_upload_completeAfter the curl from assets_upload_url finished: checks the object really landed (its size and type, read back from storage) and answers the mediaKey to use. Fails with what to do when the bytes never arrived. Needs the write scope.
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": {
"mediaKey": "<mediaKey>"
},
"name": "assets_upload_complete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaKey | Yes | The mediaKey assets_upload_url answered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes |