update_mailbox_draft
Replace a mailbox draft created by this connection. Pass current version and mailboxBlobId as blobId from get_draft. Rejects external edits and scheduled messages. Preserves the old copy in Trash. Never sends. Read warnings about uncertain writes or duplicate copies.
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": {
"draftId": "<draftId>",
"version": "<version>",
"blobId": "<blobId>",
"to": "<to>",
"subject": "<subject>",
"text": "<text>"
},
"name": "update_mailbox_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| html | No | Optional HTML formatting: paragraphs, links, emphasis, lists and quotes. Sanitized; no CSS, images, scripts or attachments. Read returned content and warnings. On updates omission preserves existing HTML; provide both bodies when editing, or null to switch to plain text. | |
| text | Yes | Required plain-text alternative. Keep its meaning consistent with html. | |
| blobId | Yes | ||
| draftId | Yes | ||
| subject | Yes | ||
| version | Yes | ||
| senderIdentityId | No |