Create draft
create_draftCreate a draft (drafts only; this tool cannot publish or schedule). TikTok visibility, music/commercial disclosure, and interaction settings cannot be preset; they are chosen by the user on the confirmation page based on the account's creator_info. A TikTok post is either 1 video or 1-35 JPG/PNG images (photo post; PNG is automatically converted to JPG and downscaled to 1080p, and a single PNG cannot exceed 8,388,608 pixels (about 4K); videos and images cannot be mixed). For photo posts, platformOverrides.tiktok accepts title (optional, up to 90 characters), photoCoverIndex (cover image index, starting at 0, default is the first image), and autoAddMusic (automatically add recommended music, on by default); the post body is used as the photo post caption, up to 4000 characters. For YouTube, platformOverrides.youtube accepts youtubeProbe:true (first upload privately to YouTube as a probe; it is made public automatically after about 30 minutes, and the other platforms are published only after it passes the check; the post must also include other platforms, and the server fixes the visibility to private). Returns a reviewUrl where the user can review, confirm and publish the post in the web app. Direct publishing through publish_post is available only when the workspace owner has enabled direct publishing by agents and all target platforms are checked. (Required scope: cd.posts.draft)
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": {
"contentText": "<contentText>",
"platformTargets": "<platformTargets>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| title | No | ||
| hashtags | No | ||
| mediaIds | No | ||
| contentText | Yes | ||
| description | No | ||
| 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 | |
| platformTargets | Yes | List of connected account ids | |
| accountOverrides | No | ||
| platformOverrides | No |