file_upload_link
Makes a link that takes one file from the user's own computer, so it can be put into Drive, attached to a Jira issue or attached to an email without passing through the conversation. The answer is a link on this service, which opens a page where the user chooses or drops the file, and a one-line command, curl -T with the file's path, that sends the file to it from a terminal. The link takes one file, once, within ten minutes. Sending the file answers a receipt with its name, size and SHA-256, and a file reference, {"type":"upload","upload_id":"..."}, which drive_upload_file, jira_add_attachment and the email tools' attachments take. The file is held in memory for ten minutes after it arrives, goes to one call and is never written to disk. A call to any tool on this service that carries the link itself is refused and the link is cancelled. At most 25 MB, and three upload links or uploaded files waiting at a time.
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": "file_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The file's name, used when the upload itself carries none. Optional. | |
| max_bytes | No | The largest file the link takes, in bytes. Optional; at most and by default 26214400 (25 MB). |