update_draft
Replace an existing draft's body without sending it, preserving thread and reply headers while optionally updating recipients, subject, cc/bcc, and attachments.
Instructions
Replace the text of an existing draft, without sending it; thread and reply headers (In-Reply-To) are kept.
Empty to, subject, cc, bcc = unchanged. Attachments already there are kept, except those named in removeAttachments; attachments adds more (same rules as create_draft). The HTML version of a draft written in Gmail is replaced by the plain text.
Args: draftId: draft ID (returned by create_draft or list_drafts). body: the new complete body, plain text. to: new recipients, or empty to keep them. subject: new subject, or empty to keep it. cc: new carbon copy, or empty to keep it. bcc: new blind carbon copy, or empty to keep it. attachments: absolute paths of files to add, optional. removeAttachments: exact names of attachments to remove, optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| body | Yes | ||
| draftId | Yes | ||
| subject | No | ||
| attachments | No | ||
| removeAttachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |