Convert Draft
convert_draftPublish or schedule a draft with its saved media. Omitting scheduledAt publishes immediately. The draft is deleted once the post is created. The draft needs text, socialMedia and postType. A TikTok draft is rejected when neither the draft nor the tiktok argument carries a privacy level. A draft missing the required metadata of its platform (a DEV_TO draft without metaData.devToTitle) is rejected too; set it with update_draft first.
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": {
"id": "<id>"
},
"name": "convert_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Draft UUID | |
| tiktok | No | TikTok only: the publishing options TikTok requires. TikTok rejects a post that has no privacy level, so this object is required on every TikTok post. privacyLevel is limited to the values get_tiktok_creator_info returns in privacy_level_options for the account (a private account cannot use PUBLIC_TO_EVERYONE). Duet and stitch default to on. Any non-TikTok target rejects this field with an error. | |
| fileIds | No | Ordered media library file IDs from presign_media_upload or list_media. Upload the actual bytes with HTTP PUT first. Use a matching postType. On update, replaces all attachments; [] clears them. | |
| accountId | No | Target social account UUID or platform account ID | |
| scheduledAt | No | ISO date for scheduling (optional, must be future) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| file | No | ||
| text | No | ||
| shareId | No | ||
| metaData | No | ||
| postType | Yes | ||
| shareUrl | No | ||
| warnings | No | ||
| accountId | No | ||
| createdAt | No | ||
| updatedAt | No | ||
| postStatus | Yes | Current status; queued/scheduled does not mean published. | |
| description | No | ||
| scheduledAt | No | ||
| socialMedia | Yes | ||
| failureReason | No | ||
| firstCommentError | No | ||
| firstCommentStatus | No | Delivery of the automatic first comment: pending, posted, failed or skipped. Null when the post has none. | |
| firstCommentPostedAt | No | ||
| firstCommentPlatformId | No |