Mail: Update draft
mail_update_draftRewrite a saved draft — its recipients, subject, body or files. Take draft_id from mail_list_drafts. Only the fields you pass change; 'attachments' ADDS files, 'remove_attachment_ids' takes stored ones off (ids from mail_list_drafts). Nothing is sent. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"draft_id": "<draft_id>"
},
"name": "mail_update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| body | No | ||
| subject | No | ||
| draft_id | Yes | ||
| attachments | No | Files to attach, at most 10 and 25 MB in total. Each item is EITHER {from_message_id, part} — an attachment of a message (id from mail_list_messages, part from mail_get_message) — OR {document_id} — one of the caller's own Documents. To attach a file you generated, store it with upload_document_base64 and pass the document_id it returns; raw file content is not accepted here. | |
| remove_attachment_ids | No | Stored files to take off the draft — their attachment_id from mail_list_drafts. |