list_drafts
Retrieve and organize email drafts in Gmail by specifying search queries, limiting results, and including spam/trash or HTML body content.
Instructions
List drafts in the user's mailbox
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeBodyHtml | No | Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large | |
| includeSpamTrash | No | Include drafts from SPAM and TRASH in the results | |
| maxResults | No | Maximum number of drafts to return. Accepts values between 1-500 | |
| q | No | Only return drafts matching the specified query. Supports the same query format as the Gmail search box |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"includeBodyHtml": {
"description": "Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large",
"type": "boolean"
},
"includeSpamTrash": {
"description": "Include drafts from SPAM and TRASH in the results",
"type": "boolean"
},
"maxResults": {
"description": "Maximum number of drafts to return. Accepts values between 1-500",
"type": "number"
},
"q": {
"description": "Only return drafts matching the specified query. Supports the same query format as the Gmail search box",
"type": "string"
}
},
"type": "object"
}