send_draft
Send a stored email draft exactly as saved: verifies recipients, subject, and attachment names before sending, then moves the draft to Trash and keeps a copy in Sent.
Instructions
Send a draft from the Drafts folder exactly as it is stored. The recipients, subject and attachment names must be passed back and are verified, so what is approved is what is sent. Afterwards the draft is moved to Trash and a copy is kept in Sent. This really sends mail.
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": {
"uidvalidity": "<uidvalidity>",
"uid": "<uid>",
"expected_recipients": "<expected_recipients>",
"expected_subject": "<expected_subject>"
},
"name": "send_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | uid of the draft in the Drafts folder. | |
| uidvalidity | Yes | uidvalidity of the Drafts folder from search_messages. | |
| expected_subject | Yes | The draft's subject. The server refuses to send if it differs. | |
| expected_recipients | Yes | Every To, Cc and Bcc address of the draft. The server refuses to send unless these are exactly the draft's recipients. | |
| expected_attachments | No | Filenames of every attachment on the draft. The server refuses to send if they differ. |