Upload a file to a document
wflow_upload_document_fileAttach a local file to an existing document, optionally marking it as the main file, to include scans or PDFs.
Instructions
Attach a local file to an existing document. Set main=true to mark it as the main document file. Use this together with wflow_update_document to create a document and attach its scan/PDF.
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": {
"documentId": "<documentId>",
"filePath": "<filePath>"
},
"name": "wflow_upload_document_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| main | No | Mark as the document's main file. | |
| filePath | Yes | Absolute path to a local file to upload. | |
| documentId | Yes | Target document id. | |
| organization | No |