Get next post to write
next_writeReturn the next post to write: the earliest-dated post whose status is scheduled. Posts with no date sort last. Statuses ready, writing and failed are never returned: ready already has a body, and list_posts returns those. Returns null when nothing is scheduled. Use the term it returns for the write pipeline. markets lists the workspace market ids the article is written for: the markets the approved content map labelled its topic with, else the main market's id alone. standard is the short form of the rules that block a draft, carried here because this is the call you make before the first sentence exists. When the term belongs to a cluster of the approved content map, cluster carries its id, name, targetTerm, the post's role (hub or spoke), the hub (kind, path, url, term, title, published), publishedSiblings (title, url, path) and expectedLinks: to (title, url, path, and href, the link to write), reason (spoke_to_hub or hub_to_spoke), present, which is null until the post has a body, and suggestion while the link is not in the body: anchor, the words to link (the searches the target ranks for, its topic or its title), and, once there is a body, found with the quote of the sentence that names the target, or found false when none does. A spoke is expected to link to its hub and a hub to its published spokes; only live targets are listed. Those links are advice; the rules never check them. Outside an approved cluster, cluster is not set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "next_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now. |