Get a link to upload a photo or a Word file
get_upload_linkA one-time page where the user uploads a file for the tools that need one: a photo (JPEG, PNG or WebP) for the image tools and scan_document, or a Word file (.docx or .doc) for word_to_pdf, up to 25 MB. It gives the file_id to pass to them. You cannot hand over a file from this chat yourself: give the user the link, ask them to open it and choose the file, and continue when they say it is done. In a client that can run shell commands (Claude Code), upload a local file yourself with the upload_command. The link works for 1 hour; the file is kept for 24 hours. Free.
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 |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| expires_at | Yes | ||
| upload_url | Yes | ||
| upload_command | Yes |