list_drafts
Retrieve Gmail drafts newest first with IDs, filter them using Gmail search syntax, and optionally include full plain-text bodies for review.
Instructions
List drafts, newest first, with draft IDs. Filter with a Gmail query. view "full" adds bodies.
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": "list_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | "metadata" (default): headers and snippet. "full": also the plain-text body. | |
| query | No | Gmail search syntax, exactly as in the Gmail search box. Operators: from:, to:, cc:, bcc:, subject:, label:NAME, in:(inbox|sent|drafts|trash|spam|anywhere|archive), is:(unread|read|starred|important), has:attachment, filename:pdf, after:YYYY/MM/DD, before:YYYY/MM/DD, newer_than:7d, older_than:1y, larger:10M, "exact phrase", OR, -negation, ( ) grouping, {a b} for OR. Whitespace is AND. Keep queries keyword-based rather than pasting whole subjects. | |
| pageToken | No | ||
| maxResults | No | Default 20. |