Draft Gmail Message
draft_gmail_messageCreate draft emails in Gmail with support for HTML content, multiple recipients (To, CC, BCC), and MJML-based responsive email specs.
Instructions
Create a draft email in the user's Gmail account with HTML support and multiple recipients
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients (optional) | |
| to | No | Optional recipient email address(es) | |
| bcc | No | BCC recipients (optional) | |
| body | Yes | Email body content. Usage depends on content_type: 'plain' = plain text only, 'html' = HTML content (plain auto-generated), 'mixed' = plain text (HTML in html_body) | |
| subject | Yes | Email subject line for the draft | |
| html_body | No | HTML content when content_type='mixed'. Ignored for 'plain' and 'html' types | |
| email_spec | No | MJML-based responsive email spec. When provided, renders blocks to HTML and overrides body/content_type/html_body. Subject comes from spec unless explicitly set. | |
| content_type | No | Content type: 'plain' (text only), 'html' (HTML in body param), 'mixed' (text in body, HTML in html_body) | mixed |
| user_google_email | No | Use 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| subject | Yes | ||
| success | Yes | ||
| draft_id | No | ||
| userEmail | Yes | ||
| content_type | Yes | ||
| has_recipients | Yes | ||
| recipient_count | Yes |