create_social_posts
Call get_publishing_rules first. KAN-4222: batch version of create_social_post. Takes an ARRAY of post specs; each spec targets one or more channels and carries EITHER content (single post) OR thread (a connected X thread), plus optional imageUrl/scheduledAt/postNow/firstComment/settings/collaborators/carousel/replyControls. The marketplace endpoint is one-channel-per-call, so this fans out per spec × channel. Content is published EXACTLY as provided — nothing is rewritten, sanitized, or truncated; every create is sent with strict:true so the server refuses (422) anything outside the profile's rules. Set dryRun:true on a spec to check it against this profile's rules without publishing. Each spec may include an optional accountIds channel→accountId map: when a spec posts to the same channel that has multiple connected accounts, the mapped accountId is used per target (e.g. two distinct Instagram accounts). accountIds is MCP-only routing and is NOT sent to the marketplace API. One failing target does not abort the batch: the response is a per-target ledger of {index, channel, ok, post | error}. GH4020: pass a top-level operationKey (or a per-spec one) and every target derives its own stable key from that base plus its index/channel/account, so retrying the same batch reuses the posts it already created and distinct channels/accounts never collapse into one post. To resume a failed batch, rerun the identical ordered batch with the ORIGINAL batch/per-spec base keys, OR retry a single target via create_social_post using its exact returned ledger operationKey. NEVER use a derived ledger key as the batch/per-spec base: it would derive again, producing a different intent.
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": {
"posts": "<posts>",
"proAccessToken": "<proAccessToken>"
},
"name": "create_social_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | One entry per post to create; each fans out over its channels. | |
| operationKey | No | Optional batch intent token. Each target derives its own key from this base plus index/channel/account, so a retried batch reuses the posts it already created. A per-spec `operationKey` overrides this base for that spec. Every ledger entry echoes the derived key — save the base (or the per-target keys) in your work artifact to resume the batch after a restart. To resume, rerun the identical ordered batch with the ORIGINAL base keys, OR retry one target via create_social_post using its exact returned ledger operationKey. NEVER use a derived ledger key as the batch/per-spec base: it derives again, a different intent. Omit both and the MCP generates one UUID per target: still unique per channel/account, but not reusable if the process dies before any result reaches you, so pass an explicit key when the batch must survive that. | |
| 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. |