publish_post
Publish one post, several, or every version of one now, and wait for the platforms to answer (about half a minute).
A post whose earlier publish failed is retried (requeued about a minute
out, retried: true). Every post first passes the same checks: character
limit, required media and settings, a connected account. One post answers
with its live url; several come back per post in posts with
publishedCount, and a post that cannot go is reported on its own while
the rest still publish (at most 10 per call). Still processing answers
pending with checkAfterSeconds: one get_post after it, no polling. A TikTok post answers
tiktok_choices_needed until the user has answered each choice; never
answer for them.
Args:
post_ids: The posts to publish.
campaign_id: Every version of one post (its campaignId from create_post) instead.
post_id: One post; the same as post_ids=[post_id].
workspace_id: Workspace ID or name. Optional if user has only one workspace.
tiktok_settings: A TikTok post's settings, as the user answered the
tiktokChoices a first call returned: {privacyLevel, allowComment,
allowDuet, allowStitch, commercialContent: {enabled, yourBrand,
brandedContent}, userConsented: true}, or {useLast: true,
userConsented: true} once the user said yes to the lastUsed
settings offered, or {sendToApp: true} when the user wants to
finish it in their TikTok app (add a sound there): the video goes
there without its caption, no choice is asked, and the post ends
sent_to_app / waiting_in_app, not published. Flat, one answer
covers every TikTok post in the call on one account; keyed by
post id otherwise. Only the user's own answers, for the posts
they were shown.
routine_id: The Autopilot routine this run is for: its mode decides whether it may schedule or publish.
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": "publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | The user's underlying goal for this call, in one sentence without personal details. Used for product analytics only. | |
| post_id | No | ||
| post_ids | No | ||
| llm_model | No | The model identifier of the calling assistant, or "unknown". Used for product analytics only. | |
| routine_id | No | ||
| campaign_id | No | ||
| workspace_id | No | ||
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| tiktok_settings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _mcp_instructions | No | Server-issued metadata for this conversation. |