Confirm an upload slot (widget)
confirm_uploadUsed by the in-chat upload widget: checks that the bytes the widget just sent landed, then returns the media descriptor. A file uploaded through a link is reported by get_media_status.
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": {
"slotId": "<slotId>"
},
"name": "confirm_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Widget only: the exact byte count the widget just sent (file.size). Only the client that sent the bytes knows it; a wrong value rejects a good upload. | |
| slotId | Yes | The slotId create_upload_slot returned. | |
| workspace | No | Act in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace. |