Gmail List Drafts
gmail_list_draftsLists Gmail drafts page by page or reads one draft in full by ID, returning IDs, headers, body, and attachments for review or editing.
Instructions
List the account's Gmail drafts a page at a time, or read one draft in full with draft_id. Change a draft with gmail_save_draft and send it with gmail_send_draft. Returns drafts and next_page_token: without draft_id each draft has id, message_id and thread_id only; with draft_id the one draft also has label_ids, date, from, to, cc, bcc, subject, snippet, attachments (with download_id) and, with format 'full', the whole cleaned body text as body with body_chars; fields a format does not read are null.
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": "gmail_list_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | With draft_id only: how much of the draft to read: 'full' (default) adds the headers, attachments and the whole cleaned body text as body; 'metadata' the headers only; 'minimal' IDs, labels, date and snippet only; 'raw' also the whole RFC 2822 message base64url-encoded as raw. | full |
| draft_id | No | Draft ID (the id from this list or from gmail_save_draft) to read one draft in full: its recipients' headers, snippet and, with format 'full', the cleaned body. Paging parameters are ignored when it is given. | |
| page_token | No | The next_page_token from the previous response of this same call; omit for the first page. | |
| max_results | No | Drafts per page, 1 to 500 (default 25). | |
| include_spam_trash | No | Also return items in Spam and Trash; by default they are excluded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| drafts | No | Drafts on this page, or the one draft read. | |
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. | |
| result_size_estimate | No |