Get links to send files
start_file_uploadGet short-lived links to upload files, so the bytes never pass through you. A photo or short video that is already in this chat (one you made, or one the person attached) does not need this: pass it as files to publish_post or schedule_post directly. Do NOT try to pass a file to a tool — it would go through the context window as base64. For a POST (the default): pass count = how many files (1 for a photo or reel, 2-10 for a carousel, in swipe order), PUT each file to its link (curl -T works), then give the upload_id to publish_post (now) or schedule_post (later). If you cannot send HTTP requests yourself (a chat app whose sandbox cannot reach other servers), give the person page_url instead: they open it and pick the file, and when they say it is sent, call publish_post with the upload_id. A file you made (an image you generated): they save it first, then pick it there. JPEG photos and MP4/MOV videos (the page turns PNG/WebP photos into JPEG), up to 1GB each, all photos or all videos; they are deleted once posted. A reel's own cover image is an upload of its own: count 1, PUT the one JPEG or PNG, then pass that upload_id as cover_upload_id (not upload_id) to publish_post, publish_video, schedule_post, schedule_video or reschedule_post. For a sequence's lead-magnet PDF: purpose "pdf" gives one link whose response carries the public url for set_sequence_download. Links last an hour.
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": "start_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | For a post: how many files. Default 1. | |
| client | No | Client website slug (or id). Required for platform-scoped keys. | |
| purpose | No | Default "post". "pdf" for a sequence's lead magnet. |