Finalize document upload
finalize_document_uploadConfirm an upload and attach it to its record: checks the object is really there, reads size and MIME type from storage, and sets the path on the target — document_url and document_name for a personnel_credential, cv_file_url for a person, a new row in tender_documents or grant_documents for a procedure. Refuses a path that does not belong to this tenant, and refuses a file type that is not among PDF, image, Office, text, csv, zip or mail.
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": {
"path": "<path>"
},
"name": "finalize_document_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exactly the storage_path from create_document_upload_url. | |
| notes | No | ||
| document_type | No | For entity tender: the kind of document, e.g. "Leistungsbeschreibung". Default "sonstiges". |