Put a file in a drive or a workbook
uploadPuts a file into a connected drive or a workbook's attachments. With text, writes that text as the file at path in a drive (/googledrive//), folders made, a file already there overwritten: how a markdown file is put in a drive, since the bash shell cannot write to one. With file (an image, video or other file the person attached in this chat) or url (a public http(s) link), this server fetches it and writes it at path (a drive, or /attachments//), up to 25 MB, and answers the drive's file id. Otherwise, for a file too large to send inline: returns a link to PUT the file to; then call again with upload_id to file it.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public http(s) link to the file: this server fetches it and writes it at `path`. Up to 25 MB. | |
| file | No | A file the person attached in the chat, written at `path`. Up to 25 MB. | |
| path | No | Where the file goes: /attachments/<workbook>/<name>, /googledrive/<folders>/<name> or /dropbox/<folders>/<name>. | |
| size | No | The file's size in bytes, when known: one over the limit is refused before uploading. | |
| text | No | The file's whole content, as text. | |
| upload_id | No | Once the file is PUT: the upload_id the link came with. |