search_drafts
Search Gmail drafts with a query and return draft IDs, message/thread IDs, recipients, and snippets so you can locate a draft to send or delete.
Instructions
Search drafts by Gmail query string. Returns draft_id (for delete_drafts), message_id, thread_id, subject, to, and snippet. Use instead of search_emails when you need to delete or send a found draft.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"query": "<query>"
},
"name": "search_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Gmail search query (e.g. "to:bob@example.com" or "subject:follow up"). | |
| account | Yes | Account id ("personal", "tamu"). | |
| max_results | No | Maximum number of results (default 20). |