update_draft
Updates a draft by overwriting only provided fields while keeping omitted ones. Re-provide attachments because they are not merged, and note that the draft ID changes.
Instructions
Updates a draft with merge semantics: given (non-empty) fields overwrite, omitted fields are kept. If only body is given the HTML body is cleared. WARNING: attachments are NOT merged; re-provide them or they are removed. The draft id changes (returned).
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>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| to | No | Primary recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| bcc | No | Bcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| body | No | Plain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative. | |
| draftId | Yes | ||
| subject | No | ||
| htmlBody | No | HTML body (valid HTML tags). | |
| attachments | No | Attachments. Combined size must not exceed 25MB. |