Add a post to the queue
queue_addQueue a draft for the next free posting time, to every account in it, without choosing a date. Call it only after the user said yes to this post; tell them the time it was given. The time is the next of the saved posting times at which none of the draft’s accounts already has a post. Answers one delivery per account in state queued, with its scheduledAt. Refused when no posting times are saved yet (queue_set) or when every one the plan can schedule for is taken.
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>",
"version": "<version>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "queue_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The draft id. | |
| 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. | |
| version | Yes | The draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see. | |
| idempotencyKey | Yes | A key you make up for this one request, 8 to 200 characters (a UUID works). Repeating the request with the same key answers the same deliveries and never posts twice, so reuse it after a timeout. A key already used for another draft, version or time is refused. |