Your drafts
list_draftsRequires a TechFabric engineer's Microsoft sign-in (scope blog.write). Lists your drafts (blog posts, case studies and revisions of live posts), newest first: each one's id, title, kind, state (writing, question_for_you, drafted, checks_failing, ready_to_publish, published and the rest), created and updated dates, preview link and next_action. Filter by state, kind and creation date (created_after, created_before: "yesterday" is the day before the answer's today), and page with cursor. The editor may pass all for everyone's; the site owner, stale: true for his owner queue (drafts stuck over two days). Reads only. Then get_status with an id for one draft in detail.
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": "list_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | The blog's editor only: everyone's drafts, not just yours. Refused for anyone else | |
| kind | No | Only this kind: post, case-study, or revision (of a live post). Leave it out for all | |
| limit | No | How many to return, newest first (default 20) | |
| stale | No | The site owner only, his owner queue: everyone's drafts with nothing from their author for more than two days (stuck, a question for them, held, drafted or failing checks; never an agent's explainer), oldest wait first. "Show my owner queue" is this. Refused for anyone else | |
| state | No | Only drafts in this state: writing, preview_building, question_for_you, drafted, checking, checks_failing, ready_to_publish, publishing, published, stuck, closed; or open, every one not yet published or closed; or stale, the site owner's queue (as stale: true). Leave it out for all | |
| cursor | No | The next_cursor from the previous page, with the same filters | |
| created_after | No | Only drafts created at or after this: a date (YYYY-MM-DD, midnight UTC) or an ISO 8601 time with its offset. For yesterday: created_after yesterday's date and created_before today's (the answer's today is the server's date, UTC; pass times with the engineer's offset for their own day) | |
| created_before | No | Only drafts created before this (not at it): a date (YYYY-MM-DD, midnight UTC) or an ISO 8601 time |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| count | Yes | ||
| scope | Yes | ||
| today | Yes | The server's date (UTC), to work out yesterday from | |
| total | Yes | How many drafts match, over every page | |
| drafts | Yes | ||
| filters | No | ||
| partial | No | Present when some drafts' states came from their records because their check runs could not all be read | |
| next_cursor | Yes | Pass as cursor for the next page; null on the last |