Write and schedule a post
posts_createPUBLISHES CONTENT: puts a post you wrote on the rail for one connected account (connections_list), or with group for every account of a group (posts_setup lists groups and their defaults; the answer's posts lists each account's post, id and status are the first's), at a time, in the account's next free queue slot, or now. Optional tags, a saved signature, repeatEveryDays and shortenLinks. Read platforms_list first for the platform's limits and settings schema. Free plan: 10 posts a day and 60 a month, and X only once a day without links, because X bills per post (402 free_daily_cap / free_monthly_cap / free_x_daily_cap / free_x_link carry the reset time and what to do instead). Once a limit is near the answer carries posting.notice: tell the human in one line before posting more. A post whose attempt failed for a passing reason (the platform or a relay did not answer) answers status scheduled with willRetry true, scheduledAt (when we try again) and error (why this attempt did not go out): it is queued, so do not post it again. Needs the publish scope.
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": "posts_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tag names or ids (posts_setup); a new name becomes a tag. | |
| text | No | The post text. Markdown on DEV, Hashnode, WordPress, Tumblr and Listmonk, where it is an article or a newsletter. | |
| audio | No | Instagram Reels only (exactly one video): a platform sound Instagram attaches at publish, by id from instagram_audio_search. Needs the Instagram account connected through Facebook Login; otherwise a 409 carries the connect link. | |
| group | No | Instead of connectionId: a group's id or name. One post per connected account in it, from the group's defaults; text may be omitted when the defaults carry it. Nothing is written unless every account's platform accepts it. | |
| plugs | No | Up to 5 plugs: comment or repost once the post reaches N likes or M minutes after it went out, from this account or another of yours. | |
| queue | No | Instead of scheduledAt: the account's next free queue slot. | |
| title | No | The title; required on YouTube, DEV, Hashnode, WordPress and Listmonk (the email subject). | |
| altText | No | Alt text for screen readers, by media key: {"<mediaKey>": "what the image shows"}. platforms_list[].altText says whether the platform takes it and its limit (X 1000, Bluesky 2000, Mastodon 1500, Threads and Instagram 1000, LinkedIn and Facebook 4086, Pinterest 500 on the first item, Discord 1024); TikTok, YouTube, Reddit and Telegram refuse it. | |
| comments | No | What goes under the post once it is live, in order. Where the platform threads (X, Bluesky, Threads, Mastodon) each item replies to the one before it, a thread; elsewhere (LinkedIn, Instagram, Facebook Page, Reddit) each is a further comment on the post. Not on TikTok, YouTube, Telegram, Discord or Pinterest. platforms_list[].comments gives each platform's chars, items and media; anything outside them is refused before the post is queued. X bills each item like a post. Each item's outcome (status, url, error) reads back on posts_get. | |
| settings | No | Per-platform settings; the schema is platforms_list[].settingsSchema, and a key outside it or a value of the wrong type is refused (422) naming the keys the platform takes. TikTok privacyLevel (required), postMode direct|inbox, a photo post's title and autoAddMusic; Reddit subreddit, flairId (reddit_flairs lists them), or subreddits for one post per subreddit; LinkedIn imagesAsDocument; Discord threadId or threadName; YouTube title, privacyStatus, tags, defaultLanguage, madeForKids; Instagram postType story, collaborators, trialReel; Facebook postType story, link; X replySettings, communityId, madeWithAi, paidPartnership; Pinterest dominantColor; Lemmy community, title, url, nsfw; Whop forum, title; DEV, Hashnode, WordPress, Tumblr title, tags, canonicalUrl and their draft or status; Listmonk title (the subject) and lists (required). A video's cover: coverMediaKey (an image of the account's own) or coverAtMs (a frame, in ms), where the platform's schema offers them. | |
| mediaKeys | No | Media already in the account (assets_upload returns keys), published in this order. Several items are a carousel where the platform has one: Instagram and Threads mix up to 20 images and videos, a Reddit gallery takes up to 20 images. platforms_list[].media says each platform's counts (maxItems caps the mix). | |
| signature | No | Append a saved signature: its id, name, or "default" (posts_setup). Counted in the platform's length limit. | |
| inspiration | No | What the post was made from: {kind: format-card|topical-story|reference-post|brand, id, url?, mode?: clone|format|inspiration, memberId?}. For a copy of a reference, kind reference-post with the member id from references_list. | |
| scheduledAt | No | ISO time it goes out. Omit for now. | |
| connectionId | No | The account to post as (connections_list). | |
| firstComment | No | One comment under the post, sent the moment it is live: the one-item comments. Give this or comments. | |
| shortenLinks | No | Swap each http(s) link for a shapelessai.com/l/ short link that counts clicks (posts_get links[].clicks). | |
| idempotencyKey | No | Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first call made, with replayed: true, and makes nothing new. Derive it from the thing, not the attempt, so every agent and every restarted run that means the same one sends the same key. | |
| repeatEveryDays | No | Repeat: each time an occurrence goes out, the next is queued this many days after its slot. Each meets the plan's limits like a new post; one refused, failed or canceled ends the series. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| error | No | ||
| group | No | ||
| posts | No | ||
| status | Yes | ||
| skipped | No | ||
| willRetry | No | ||
| handoffNote | No | ||
| scheduledAt | No | ||
| publishedLocation | No |