update_draft
Modify draft emails by updating recipients, subject, body, or threadId. Preserves current draft details if new values are not provided, enabling precise content adjustments for Gmail drafts.
Instructions
Replace a draft's content. Note the mechanics of the threadId and raw parameters.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bcc | No | List of BCC recipient email addresses, will be copied from the current draft if not provided | |
body | No | The body of the email, will be copied from the current draft if not provided | |
cc | No | List of CC recipient email addresses, will be copied from the current draft if not provided | |
id | Yes | The ID of the draft to update | |
includeBodyHtml | No | Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large | |
raw | No | The entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided | |
subject | No | The subject of the email, will be copied from the current draft if not provided | |
threadId | No | The thread ID to associate this draft with, will be copied from the current draft if not provided | |
to | No | List of recipient email addresses, will be copied from the current draft if not provided |