Finalize document upload
finalize_document_uploadStep 2: call AFTER the file has been PUT to the upload_url from create_document_upload_url. Confirms the object landed in storage, backfills real file_size/mime_type, and sets status to 'current'. Throws if the upload hasn't landed yet — retry once the PUT has actually completed.
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": {
"document_id": "<document_id>"
},
"name": "finalize_document_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | ||
| document_id | Yes |