Write a draft
drafts_createCreate a draft: a title and one variant per account, each with its own text and media. Nothing is sent. Answers the draft with its id and version. Check it with drafts_validate and show it to the user before publish or schedule. A TikTok post also waits for the owner: TikTok has them choose, on a screen of ours, who can see each video, whether people may comment, duet or stitch, and whether it promotes a brand. Those choices cannot be sent here. When a draft has a TikTok account, the answer carries choose: one { accountId, network, link } per TikTok account still waiting; hand the user that link and wait for them to make the choices there (they can post from that screen too).
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": {
"title": "<title>",
"variants": "<variants>"
},
"name": "drafts_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | A name for the draft in the user’s own list. It is never posted. | |
| brandId | No | The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out. | |
| variants | Yes | One entry per account the post goes to, each with its own text and media. |