updateDraft
Replaces an existing draft message's content with new subject, body, recipients, or attachments, using the draft ID to locate and update it.
Instructions
Update an existing draft's content. Replaces the draft message with new content.
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": {
"id": "<id>"
},
"name": "updateDraft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | List of CC recipient email addresses | |
| id | Yes | The ID of the draft to update | |
| to | No | List of recipient email addresses. Each entry must be either 'addr@example.com' or 'Display Name <addr@example.com>'; non-ASCII display names are RFC 2047 encoded automatically. Other RFC 5322 forms (groups, comments, a quoted display name containing a '<') are sent through unencoded. | |
| bcc | No | List of BCC recipient email addresses | |
| raw | No | The entire email message in base64url encoded RFC 2822 format, ignores other params if provided | |
| body | No | The body of the email. Supports plain text or HTML (auto-detected). Use HTML tags like <p>, <br>, <b> for formatted emails. | |
| subject | No | The subject of the email | |
| threadId | No | The thread ID to associate this draft with | |
| attachments | No | File attachments to include | |
| includeBodyHtml | No | Whether to include the parsed HTML in the return for each body |