update_draft
Edit an existing Gmail draft by changing only the fields you specify, while preserving recipients, subject, threading, and attachments unless replaced.
Instructions
Edit an existing draft. Only the fields given change; recipients, subject, threading and attachments are kept otherwise. Giving body or htmlBody replaces the whole body (including any quoted original), and the signature is re-appended. Giving attachments replaces the attachment set; clearAttachments removes them all. Note the draft's message ID changes on every update while the draft ID stays the same.
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 | ||
| to | No | ||
| bcc | No | ||
| body | No | Plain-text body. One line per paragraph, no hard wrapping; Gmail wraps on display and links bare URLs. Markdown does NOT render: for bullets or other formatting supply htmlBody instead. | |
| draftId | Yes | ||
| subject | No | ||
| htmlBody | No | HTML body, used when the message needs formatting such as <ul><li> lists. When given, "body" becomes the plain-text alternative (derived from the HTML if omitted). Do not include the signature; it is appended. | |
| signature | No | Set false to send without the configured signature. By default the signature (from config.json, GMAIL_SIGNATURE, or the Gmail settings signature) is appended once; a copy typed into the body is de-duplicated. | |
| attachments | No | Files to attach, as local paths (preferred: any size up to Gmail's 25 MB total) or base64 objects. | |
| clearAttachments | No |