Send Gmail Message
send_gmail_messageSend Gmail messages with support for plain text, HTML, or mixed content, including CC/BCC recipients and responsive email specifications.
Instructions
Send an email using the user's Gmail account with elicitation support for untrusted recipients
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients (optional) | |
| to | No | Recipient email address(es) - defaults to 'myself' (authenticated user) | myself |
| 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 | |
| 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. Example: {"subject": "Welcome!", "blocks": [{"title": "Hello", ...}]} | |
| 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 | ||
| action | No | ||
| draftId | No | ||
| subject | No | ||
| success | Yes | ||
| userEmail | No | ||
| message_id | No | ||
| content_type | No | ||
| cc_recipients | No | ||
| template_name | No | ||
| to_recipients | No | ||
| bcc_recipients | No | ||
| recipientCount | No | ||
| template_applied | No | ||
| jinjaTemplateError | No | ||
| elicitationRequired | No | ||
| jinjaTemplateApplied | No | ||
| recipientsNotAllowed | No | ||
| elicitation_triggered | No | ||
| elicitationNotSupported | No |