Post a photo, video or carousel to Instagram
publish_postUse this when the owner asks to post a photo, video, reel or carousel to Instagram right now, or to put one on their Instagram Story. Publish NOW to the client's connected Instagram: files from this chat (files — an image you made or one they attached; JPEG, PNG or WebP photos, the last two turned into JPEG here, or MP4/MOV videos; up to 50MB each), their own files by upload_id (from start_file_upload, every file PUT — deleted once posted), or public https URLs (one for a single post, two to ten for a carousel; Instagram fetches them itself, so they must be reachable at publish time). Pass exactly one of files, upload_id or urls. ONLY when the client has asked for it — this goes out immediately and publicly, and there is no undo. To post later, use schedule_post. For a video the product rendered, use publish_video instead so the link is refreshed first. A reel posts with Instagram's own pick (its first frame) unless they choose a cover: their own image (cover_file, or cover_upload_id from its own 1-file upload) or a moment (cover_frame_seconds). Only a reel has a cover, and it cannot be changed once posted.
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": "publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | With urls only (an upload knows its own). Default IMAGE. REELS for a video. In a carousel this applies to every slide, so do not mix photos and videos in one call. | |
| urls | No | Public https URLs: one for a single post; 2-10 for a carousel, in swipe order. Use this OR upload_id. | |
| files | No | Files from this chat to post: 1 for a single post, 2-10 for a carousel, in swipe order. JPEG, PNG or WebP photos or MP4/MOV videos. Use this OR upload_id OR urls. | |
| trial | No | Post it to Instagram as a TRIAL REEL: shown to people who do not follow the account first; it reaches their followers only when the client opens it in the Instagram app and taps "Share with everyone". One video only — never a photo or a carousel. Use it ONLY when the client asks for a trial reel. | |
| client | No | Client website slug (or id). Required for platform-scoped keys. | |
| caption | No | Up to 2200 characters. On a carousel it belongs to the whole post, not a slide. | |
| placement | No | Where on Instagram. Default "feed": a post on the profile. "story": an Instagram Story for 24 hours instead — no caption, no cover and no trial (they are not sent), one Story per file or per carousel slide, a video 3 to 60 seconds. Use "story" ONLY when the client asks for a Story. | |
| platforms | No | Where to post. Default ["instagram"]. YouTube (a Short) needs YouTube connected in Settings › Connections and takes ONE video only. | |
| upload_id | No | The client's own files, from start_file_upload once every file has been PUT. Use this OR files OR urls. | |
| auto_share | No | Only with trial: true. Instagram shares the trial reel with the account's followers by itself if it does well; Instagram decides what counts as doing well, so it may not happen. It is set when the reel goes out and cannot be added afterwards, and nothing here can share a reel that is already posted: for that the client taps "Share with everyone" on it in the Instagram app. Use it ONLY when the client asks for it. | |
| cover_file | No | A reel only: the cover image from this chat (one JPEG or PNG, up to 8MB). Use this OR cover_upload_id OR cover_frame_seconds. | |
| post_again | No | ONLY when the client says they want a second copy of something that already went out. Without it, the same files within the hour reports the first post instead of posting. | |
| cover_upload_id | No | A reel only: the owner's own cover image — the upload_id of a separate start_file_upload with count 1 (one JPEG or PNG, up to 8MB; 1080x1920 is best, and words kept to the middle). Use this OR cover_file OR cover_frame_seconds. | |
| cover_frame_seconds | No | A reel only: a moment of the video, in seconds from the start (decimals allowed), to be its cover. Use this OR cover_upload_id OR cover_file. | |
| resume_container_id | No | ONLY from a previous still_processing result on a SINGLE post. Finishes the upload already in flight rather than starting a second one. |