Upload a file
upload_fileFor a PDF, picture or spreadsheet (up to 25 MB). Call with filename, content_type and size: you get an address to PUT the file to. After the PUT, call again with document_id: Guest Logic reads it and returns what was found. Types: PDF, PNG, JPEG, WebP, XLSX, XLS, CSV, TXT. Needs the owner's sign-in.
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 |
|---|---|---|---|
| size | No | Bytes | |
| filename | No | File name | |
| document_id | No | From the first call, after the PUT | |
| content_type | No | e.g. application/pdf |