create_upload_link
Upload a video or photo from the user's computer or phone to post it on social media (Facebook, Instagram, TikTok, YouTube, X). Shows an upload card in the chat, plus a link that also works on a phone, where the user drops the files in full quality: images up to 10 MB, videos up to 1 GB, mp4 or mov (a .mov becomes an .mp4 in the browser).
Use it when the file is on the user's device and not in the chat, for a video, when upload_media_from_url answers with lowResolution, or when a file transfer failed. A file attached in ChatGPT goes through upload_media_from_url first; after a successful upload, use its path and do not ask for the file again.
The flow:
Call this. Also give the returned url in your reply for clients without the card, and say: "Drop the photo or video on the card, or open this link, then tell me it is done."
When the user presses "Use in a post" on the card, you get the file paths in a message. Otherwise, when they say it is done, call list_upload_link_files with this uploadLinkId.
Pass the path as the create_post attachment.
The link works signed out for 120 minutes and takes several files. Call it once per batch; if it expires, call it again.
Magyarul: kép vagy videó feltöltése a gépről vagy telefonról, például Facebookra, Instagramra, TikTokra, YouTube-ra.
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": "create_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | No |