create_social_post
Call get_publishing_rules first. Create a Custom Post for a channel. Provide EITHER content (single post) OR thread (a connected X thread). If the network has more than one connected account, pass accountId from list_connected_channels — the server will not guess. If postNow=true, the marketplace submits now; publication may still be pending. Only a confirmed posted status is publication proof. Otherwise it schedules for scheduledAt. Rejects (403) if the channel is not connected, or 409 ACCOUNT_REQUIRED when accountId is missing and several accounts exist. Every create is sent with strict:true, so the server refuses (422, CONTENT_TOO_LONG / IMAGE_ASPECT_RATIO) anything outside the profile's rules instead of silently truncating or cropping it. Set dryRun:true to check a post against this profile's rules without publishing anything.
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": {
"channel": "<channel>",
"proAccessToken": "<proAccessToken>"
},
"name": "create_social_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Set dryRun:true to check a post against this profile's rules without publishing anything. | |
| thread | No | Publish as a connected X thread — an ARRAY where each element is ONE post in the chain, in order. YOU split the content into separate posts; each element must fit the X text limit from get_publishing_rules (social.channels[].text). X only. Works with scheduledAt or postNow=true. Use this instead of `content`. To tag someone, write @{tag-key} (from find_social_tags / save_social_tag); the server writes the right form for each network and reports which became real tags. dryRun shows the final text per network. | |
| channel | Yes | ||
| content | No | Single-post body. Provide content OR thread (not both). The per-channel length limit and how it is counted come from get_publishing_rules (social.channels[].text); text over the limit is refused, never truncated. To tag someone, write @{tag-key} (from find_social_tags / save_social_tag); the server writes the right form for each network and reports which became real tags. dryRun shows the final text per network. | |
| postNow | No | If true, submit for publication now; stored status and provider confirmation determine whether it is published. Ignores scheduledAt. Either scheduledAt or postNow=true selects the publish mode. | |
| carousel | No | LinkedIn only (Personal or Page): request Postiz’s native image-carousel setting. Provide ordered photos in mediaUrls. Works with scheduledAt or postNow=true. For Instagram, Facebook Page, and X, pass mediaUrls only — their normal multi-image post is already a carousel/gallery. | |
| imageUrl | No | Optional single pre-uploaded https URL on Boatwork S3 (output of an Imagen generation, profile media, etc.). Prefer mediaUrls for a carousel. On a thread it attaches to the first part only. Instagram REQUIRES media and rejects images outside a 4:5–1.91:1 aspect ratio (probed before posting); video must be MP4. | |
| settings | No | Escape hatch: raw platform-specific Postiz settings, merged over channel defaults. Prefer the typed params below (firstComment/collaborators/replyControls) where they apply. Works with scheduledAt or postNow=true. | |
| accountId | No | Required when list_connected_channels returns more than one account for this channel. | |
| followUps | No | Replies on this NEW post, delayed by minutes after the preceding entry. Works with scheduledAt or postNow. Cannot combine with thread or firstComment. Provider acceptance/root publication does not confirm the follow-ups. Use standalone comment/reply tools for an existing audience conversation. To tag someone, write @{tag-key} (from find_social_tags / save_social_tag); the server writes the right form for each network and reports which became real tags. dryRun shows the final text per network. | |
| mediaUrls | No | Ordered pre-uploaded media URLs for a carousel. Instagram and Facebook Page allow up to 10 images when Postiz-backed; LinkedIn Personal and LinkedIn Page allow up to 20 (or one MP4 video); X allows up to 4. A direct-OAuth Instagram or Facebook connection currently allows 1. The Marketplace API enforces the live connection-specific limit. Keep every user-selected Instagram photo in order. Never retry a failed carousel as a single-photo post or remove photos/collaborators without user approval; repair the reported error and check existing posts before retrying. | |
| scheduledAt | No | ISO-8601 datetime. Required unless postNow=true. Works with content, thread, firstComment, settings, collaborators, carousel, and replyControls. | |
| firstComment | No | Facebook / Instagram / LinkedIn only: text published as the FIRST COMMENT under the post — put outbound links/CTAs here instead of the caption to dodge algorithm penalties. Requires `content`. Works with scheduledAt or postNow=true. NOT for X (use `thread`). Only works when the channel is connected via Postiz. To tag someone, write @{tag-key} (from find_social_tags / save_social_tag); the server writes the right form for each network and reports which became real tags. dryRun shows the final text per network. | |
| operationKey | No | Stable token for THIS post intent (max 128 chars). Retrying or resuming with the same key reuses the post already created for that intent instead of duplicating it; using the same key with different content is rejected (409). Every result echoes the key that was used — save it in your work artifact and reuse it to resume this intent after a restart. Omit it and the MCP generates one UUID per create call (reused across automatic transport retries, but lost if the whole MCP process dies before any result reaches you: pass an explicit key when the intent must survive that). Pass a NEW key to intentionally create a second, identical post. | |
| collaborators | No | Instagram only: handles to invite as collaborators (co-authors). Letters, numbers, periods, underscores (1-30 chars, no leading/trailing period). The collaborator must accept the invite before the post appears on both profiles. Works with scheduledAt or postNow=true. | |
| replyControls | No | X only: who can reply to the post (default everyone). Works with scheduledAt or postNow=true. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |