Get an upload link
get_upload_linkMakes a one-time link where the person adds one photo or video from their phone or computer: for a file that isn't in Postwith and has no public link, since files attached in a chat don't reach Postwith. Photos (JPEG, PNG or WebP) up to 20 MB, videos (MP4 or MOV) up to 50 MB. The link lasts 24 hours. In a terminal, npx postwith upload <file> <link> sends the file without opening the page. check_upload says when it's in and gives its mediaId.
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 |
|---|---|---|---|
| fileName | No | The file's name, if the person said, to show on the page |