edit_post
Edit an existing HubPost post that has not published yet (draft or scheduled). Replaces its caption, media, thumbnail, schedule and platform options. The platform is derived from the post; platformOptions must match it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"postId": "<postId>",
"caption": "<caption>"
},
"name": "edit_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | Id of the post to edit. Its platform (and options) are derived from the post | |
| caption | Yes | Post caption/body. Length limits depend on the account's platform | |
| mediaIds | No | mediaIds from the user's library to attach, in display order, taken from the media list or a finished upload. Some platforms require media, and some accept only images or only video | |
| scheduledAt | No | ISO 8601 time to publish. Omit to save as a draft. A time already due publishes immediately | |
| platformOptions | No | Platform-specific options, must match the account's platform. FACEBOOK: { kind: "POST", aiGenerated? } | { kind: "REEL", aiGenerated? } | { kind: "STORY", aiGenerated? }. INSTAGRAM: { kind: "POST", aiGenerated?, collaborators? } | { kind: "REEL", aiGenerated?, collaborators?, shareToFeed?, trialReel?: "OFF" | "MANUAL" | "AUTO" } | { kind: "STORY", aiGenerated? }. X: omit or null. TIKTOK: { privacyLevel, allowComment?, allowDuet?, allowStitch?, contentDisclosure?, yourBrand?, brandedContent?, aiGenerated? }. YOUTUBE: { title, tags, category: "autos_and_vehicles" | "comedy" | "education" | "entertainment" | "film_and_animation" | "gaming" | "howto_and_style" | "music" | "news_and_politics" | "nonprofits_and_activism" | "people_and_blogs" | "pets_and_animals" | "science_and_technology" | "sports" | "travel_and_events", visibility: "public" | "unlisted" | "private", license: "youtube" | "creativeCommon", madeForKids, notifySubscribers, allowEmbedding, aiGenerated? }. THREADS: omit or null. LINKEDIN: omit or null. PINTEREST: { boardId, title?, link? }. BLUESKY: omit or null. aiGenerated: Turn on when AI made or changed this media to look real, like a real-looking person, voice, place or event. Leave off for animation, fantasy visuals, small edits like filters or color, and AI-written captions. | |
| thumbnailMediaId | No | Image mediaId from the user's library to use as the cover of a single-video post. Only some platforms and post kinds accept a custom cover; the post is rejected when it doesn't, so omit it there |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | Yes |