Get a link to upload a file
get_upload_linkUse this when you cannot pass the person's file to a tool. Returns upload_url, a private KovaPDF page that works once for 15 minutes, and upload_id. Give the person the link, then call wait_for_upload with the upload_id right away and wait for the files they send: they open the link on any device, add their files and press Send. Never ask the person to say done. When wait_for_upload returns the file ids, pass them to the tool in that order. An upload_id also still works as a file_id once the files are sent, for clients that do not call wait_for_upload. Never make a document to stand in for theirs. Ask for up to 20 files in one link with max_files when the job needs more than one file, in the order you need them.
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": "get_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | The tool the files are for, for example merge_pdfs. Only used for the page title. | |
| max_files | No | How many files the link takes, 1 to 20. Leave it out for one file. |