gmail_send_draft
Sends an existing Gmail draft by index or query, requiring confirm=true and verifying delivery state to prevent duplicate sends when Gmail's response is unclear.
Instructions
Send an existing draft (index from gmail.drafts, optionally with the same query).
Send is never repeated blind: when Gmail's reaction to Send is unclear the mail is looked up in Outbox / Sent; if that cannot tell, the op fails with error 'send_state_unknown' and nothing is re-sent (check gmail.list folder='sent' before any retry). A result may carry verified_in='outbox' | 'sent' when the send was confirmed that way; a scheduled send counts only once Gmail confirms it or it is found in 'Scheduled' (verified_in='scheduled').
Requires confirm=true (outward-facing or destructive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Row index from gmail.drafts (default 0 when query is given). | |
| query | No | The query used with gmail.drafts (searches 'in:drafts <query>'); default: the query of the last gmail.drafts listing (else the Drafts folder). | |
| confirm | No | Must be true: this action is outward-facing or destructive. | |
| schedule | No | Schedule the send instead of sending now (see gmail.send). | |
| expect_subject | No | Safety check: the draft's subject must contain this text. |