The playbook
A draft holds a post (caption, media, networks) without publishing it, so the user can come back and finish it.
If the plan has several workspaces, call workspaces_list first and ask which one, then pass workspace=<id> to every tool below.
1. Save a draft
list_accountsfor the networks the draft will go to. A network with several connected accounts needsaccount_ids.- Media, if any:
upload_media_from_url(url) for a public file, orcreate_upload_linkthenget_upload(upload_id) for a file the user has. Keep themed_ids. - Writing the caption for them? Read
smarty_getfirst and write in the brand's voice (tone, words to use and avoid, offers and links). create_postwithplatforms,content,media,draft: true(plustitle,cover,hashtags,account_idsas needed). Nothing is published.- Show the
post_idand what was saved.
2. Find drafts
list_posts with status: "draft" (add search to match caption text, platform, limit). Show each with its networks, first line, media count and when it was created. get_post (post_id) for one in full.
3. Finish a draft
Edit with update_post (post_id plus any of content, media, cover). draft: true keeps it a draft.
Check the caption for X or Threads with check_caption_length (text) before it goes out.
4. Send it (confirm first)
Show the final caption, media, networks and when. Then, on a yes:
- Schedule:
update_postwithpost_id,schedule_at(ISO 8601) andtimezone. Suggest a time fromget_best_time_to_postif they have none. - Publish now:
update_postwithpost_idandpublish_now: true.
Then get_post to show each platform's status.
5. Clean up
Delete a draft only when the user asks: delete_post with post_id, after confirming which one.
6. Report
List the drafts touched and their new status. Offer /schedule-post for more scheduling or /first-comment when a draft has a link that belongs in the comments.