listDrafts
Retrieve drafts from a Gmail mailbox, optionally filtered by query and limited to 500 results, with options to include HTML bodies and spam or trash.
Instructions
List drafts in the user's mailbox
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": "listDrafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only return drafts matching the specified query | |
| maxResults | No | Maximum number of drafts to return (1-500) | |
| includeBodyHtml | No | Whether to include the parsed HTML in the return for each body | |
| includeSpamTrash | No | Include drafts from SPAM and TRASH |