Retry failed platform publish
retry_publish_targetRepublish the failed target of a post for one platform (only possible when its status is failed). Same restrictions as publish_post: the workspace owner must have enabled direct publishing by agents and this platform must be checked; platforms such as TikTok that require the user's own confirmation are always rejected with a reviewUrl. If the previous result is unknown (it may already have been published), 409 MAIN_WEB_DUPLICATE_RISK_CONFIRMATION_REQUIRED is returned, because the post may end up published twice; calling again with confirmDuplicateRisk:true accepts that risk. A resend uses plan quota; X is counted in points. (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>",
"targetId": "<targetId>",
"confirm": "<confirm>"
},
"name": "retry_publish_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | ||
| confirm | Yes | true = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED. | |
| targetId | Yes | targets[].id returned by get_post | |
| 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. | |
| confirmDuplicateRisk | No | The user has agreed to accept the risk of duplicate publishing |