Publish post
publish_postPublish a draft directly (if the workspace has not changed this setting, it is on by default and all the direct-publish platforms listed below are available, so the user does not need to enable anything in settings first; platforms that the workspace owner has turned off or unchecked in settings cannot be published directly). Publishes immediately or on a schedule; drafts are not published until this tool is called. Only drafts can be published. Direct-publish platforms: Facebook, Instagram, Threads, LinkedIn, LinkedIn Page, Pinterest, Telegram, Mastodon, Tumblr, Bluesky, X (paid plans only), Telegraph; the workspace settings are authoritative (the allowedPlatforms returned by GET /api/v1/agent-publish, as set by the user on the web); a request that is not allowed is rejected with a reviewUrl. YouTube connections are not yet open (once open, the workspace owner must also first choose "made for kids" in settings, which the server declares on their behalf; a madeForKids value passed by the agent is always ignored); TikTok always requires the user's own confirmation. If the post's targets include any platform that is not in allowedPlatforms, the whole request is rejected with AGENT_PUBLISH_NEEDS_USER_CONFIRMATION and a reviewUrl where the user can confirm and publish on the web; if YouTube is allowed but the owner has not made the kids declaration, AGENT_PUBLISH_YOUTUBE_KIDS_REQUIRED is returned (also with a reviewUrl); if the workspace has not enabled this or the platform is not checked, AGENT_PUBLISH_NOT_ENABLED is returned; if the master switch is off, 503 is returned. The optional scheduledAt (ISO time, in the future) schedules the post; retrying the same post does not publish it twice. With dryRun:true, only the pre-publish checks run (permissions, plan, platform requirements, media); nothing is published and the draft is not changed, and a pass returns dryRun:true; the anti-spam check and the daily count are evaluated at actual publish time. The caller must be a workspace owner/admin/editor. (Required scope: cd.posts.publish)
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>"
},
"name": "publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | true = run the checks only without actually publishing; the draft is unchanged. Test keys are always treated as true. | |
| postId | Yes | ||
| confirm | No | true = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED. | |
| scheduledAt | No | ISO 8601 (with time zone); must be later than the current time; if omitted, publishes immediately | |
| workspaceId | No | Optional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to. | |
| idempotencyKey | No | 16-128 characters: letters, digits, underscores, or hyphens; keep it unchanged when retrying |