files_complete_upload
Finish an upload started with files_create_upload_url, after the bytes have been PUT to the upload_url.
Verifies the object actually landed and matches the size (and sha256, when one was declared), then makes the file usable: from here file_id works in messages_send, messages_send_email attachments, documents.create, and the rest.
A file over 100 MB is stored only: it can be sent, downloaded or passed on by file_id, but its contents are not indexed for search (indexed: false).
Returns: file_id, status, byte_size, mime_type, indexed (on the call that completes the upload).
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": {
"file_id": "<file_id>"
},
"name": "files_complete_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | file_id returned by files_create_upload_url | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |