Gmail

Gmail_UpdateDraftEmail

Update an existing email draft using the Gmail API. Single-part ``text/plain`` and single-part ``text/html`` drafts both support full body replacement; the rebuild follows the existing draft's content type, so a plain draft stays plain and an HTML draft stays HTML. Plain-text input supplied against an HTML draft is auto-converted to HTML, and HTML input supplied against a plain draft is stored verbatim as ``text/plain``. Reply drafts preserve their reply-quote tail (``> `` lines for plain, ``<blockquote>`` for HTML) when the body is supplied as a top-only update. Multipart drafts and drafts with attachments still fail when the body changes; in those cases the tool succeeds only when the effective body is unchanged (metadata-only update preserving the existing MIME tree). Edit those drafts in Gmail directly. For each of subject, body, recipient, cc, and bcc, omitting the parameter or passing ``None`` leaves that part of the draft unchanged (for cc/bcc, existing headers are kept; pass an empty list to clear).

Remote gmail

Remote (network-hosted)

Other tools also called Gmail_UpdateDraftEmail? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Cc recipients. Omit or pass None to preserve the existing Cc header; pass an empty list to clear Cc."
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Bcc recipients. Omit or pass None to preserve the existing Bcc header; pass an empty list to clear Bcc."
    },
    "body": {
      "type": "string",
      "description": "Updated body for the draft. There is no `content_type` argument — the body is encoded to match the existing draft, and reply drafts re-attach their existing reply-quote tail. For multipart drafts or drafts with attachments, omit body and update only subject, recipient, cc, or bcc. Omit or pass None to leave the body unchanged."
    },
    "subject": {
      "type": "string",
      "description": "Draft subject. Omit or pass None to leave the existing subject unchanged."
    },
    "recipient": {
      "type": "string",
      "description": "To header. Omit or pass None to leave the existing recipient unchanged."
    },
    "draft_email_id": {
      "type": "string",
      "description": "The ID of the draft email to update."
    }
  }
}
          

Provider

Gmail →