Upload file
upload_fileUpload Word, PDF, PowerPoint, Excel, OpenDocument, CSV, TXT, Markdown, HTML, or image files to convert or edit them, or use them as sources; returns a file_id for follow-up tasks.
Instructions
Upload a file (Word, PDF, PowerPoint, Excel — also the old .doc, .ppt and .xls —, .odt, CSV, TXT, Markdown, HTML, or a PNG, JPEG, GIF or WebP picture; up to 20 MB) to convert or edit it, or to use it as a source. Returns its file_id. Give path for a file on this computer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public URL: Doconda downloads the file from it. | |
| path | No | Absolute path of the file on this computer. | |
| filename | No | Its name with extension, e.g. contract.docx. Needed with content_base64. | |
| content_base64 | No | The file's bytes in base64 (for small files). |