gmail_draft_list
List Gmail drafts with draft IDs, recipients, subjects, dates, and snippets; filter by Gmail search syntax to find a draft before opening or editing it.
Instructions
List Gmail drafts with each one's draft id, which gmail_search with in:drafts cannot return and which gmail_draft_show requires. Each row has draft_id, message_id, thread_id, to/cc/bcc, subject, date and snippet. The message_id changes every time the draft is saved, so address a draft by draft_id. query filters with Gmail search syntax (e.g. to:alice subject:report); omit it to list every draft. limit defaults to 50; pass 0 for every draft up to a hard cap (10000). Each row costs one extra messages.get request. Read-only (gmail.readonly is enough). Mirrors omni-dev gmail draft list. Output is YAML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum drafts to return. Defaults to 50 when omitted; `0` explicitly means every draft, up to the hard cap (10000). Each draft costs one extra `messages.get` request (20 quota units). | |
| query | No | Only list drafts matching this Gmail search query (same syntax as the Gmail search box), e.g. `to:alice subject:report`. Omit to list every draft. | |
| account | No | Selects a named Gmail account instead of the ambient `--account`/`OMNI_DEV_GMAIL_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `gmail_account_list` to discover configured names. |