draftId— whatget_draft,update_draft,send_draftanddelete_drafttake. It survives edits.messageId— the current version’s message id, whichtrash_emailstakes to discard the draft recoverably.
search_emails with mailbox: "Drafts" finds the same messages, but it returns message ids only, and an edited draft’s message id changes on every edit.
A draft that another mail client left in Trash as well as in Drafts is not listed. The draft tools refuse it as discarded, so it is not pending.
Parameters
Whole words matched against the subject and every recipient (to, cc, bcc), by name or address —
"invoice", "Nadia", "nadia@example.org" or "example.org". A fragment of a word does not match: "invo" finds nothing. The body is not searched.Only drafts last staged or edited on or after this UTC ISO-8601 timestamp, e.g.
"2026-10-01T00:00:00Z".Example
Call
Result
last staged is when the current version was written. An edit rewrites the message, so it is the last edit, not when the draft was first created, and after/before filter on the same time. reply to names the message a reply draft answers, when the draft was staged by Langmail.
When more drafts match than limit allows, the heading reads Showing the newest 20 of 34 draft(s) and a closing line says how many were left out. There is no paging: narrow with query or after/before, or raise limit.
Results with nothing listed
The Drafts folder is empty.— no filter was given and there are no drafts.No drafts matched.— a filter was given and nothing matched it.
Errors
This account has no Drafts folder, so there are no staged drafts to list.