Complete document upload
complete-document-uploadStore a file uploaded with create-document-upload as a document.
WHEN TO USE: After the upload command succeeded.
RETURNS: The new document's id, title, folder and its stored file (name,
size, SHA-256). Name it as an event's evidence by passing document_id to
create-event-block (an invoice, a vendor bill, a receipt) or
record-statement-balance (a statement); read the file's text with
read-document-file.
NOTES: The file is checked (a real PDF, within the size cap) and hashed; a file that fails is discarded. Completing the same upload twice returns the same document. A stored file is not searchable with search-documents.
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>",
"title": "<title>"
},
"name": "complete-document-upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for filtering | |
| title | Yes | Document title (e.g. 'Operating Checking statement, Sept 2026') | |
| folder | No | Folder for organization (e.g. 'statements') | |
| upload_id | Yes | The upload_id create-document-upload returned |