create_post
Create a post for one of the user's connected HubPost accounts. Saves as a draft, or schedules it when scheduledAt is set (a due time publishes immediately). The platform is derived from the account; platformOptions must match that platform. Media is attached by mediaId from the user's library, so when the user wants media that is not there yet, show the upload widget before creating the post.
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": {
"accountId": "<accountId>",
"caption": "<caption>"
},
"name": "create_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| accountId | Yes | Connected account to post from. The platform is derived from it | |
| 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 |