Delete draft
delete_draftRemoves project-created, unchanged drafts from Gmail Trash or IMAP Drafts; optional expected_revision guards deletion, while human-edited drafts are preserved.
Instructions
Delete a draft this project created and nobody changed since (optionally conditional on expected_revision). Gmail moves it to Trash; IMAP removes it from Drafts. Drafts written or changed by a person are never deleted (draft_conflict), and a stale expected_revision fails the same way; leave such drafts to the owner. Unknown draft ids return not_found.
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>",
"draft_id": "<draft_id>"
},
"name": "delete_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Mailbox alias or email address from list_accounts. | |
| draft_id | Yes | Draft id from create_draft or list_drafts. | |
| expected_revision | No | Delete only if the draft is still at this revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | No | ||
| draft_id | No |