search_drafts
Find Gmail drafts by query string and retrieve draft IDs, message IDs, thread IDs, subject, recipient, and snippet. Use when you need to send or delete a found draft.
Instructions
Search drafts by Gmail query string. Returns draft_id (for send_draft/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. | |
| max_results | No | Maximum number of results (default 20). |