Skip to main content
Lists what is staged in the user’s Drafts folder, newest first. Use it to find a draft staged in an earlier session, to spot a stale or duplicate copy before staging another, or to tell the user what is waiting to be sent. Each draft comes with two ids, because they answer different tools: 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

string
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.
string
Only drafts last staged or edited on or after this UTC ISO-8601 timestamp, e.g. "2026-10-01T00:00:00Z".
string
Only drafts last staged or edited strictly before this UTC ISO-8601 timestamp.
number
default:"20"
How many drafts to return, newest first. 1–50.

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.