Draft Gmail Reply
draft_gmail_replyDraft a reply to a specific Gmail message with proper threading. Supports plain text, HTML, or mixed content and customizable recipients.
Instructions
Create a draft reply to a specific Gmail message with proper threading and HTML support
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Custom CC recipients (when reply_mode='custom') | |
| to | No | Custom recipients (when reply_mode='custom') | |
| bcc | No | Custom BCC recipients (when reply_mode='custom') | |
| body | Yes | Draft reply body content. Usage depends on content_type: 'plain' = plain text only, 'html' = HTML content (plain auto-generated), 'mixed' = plain text (HTML in html_body). Original message will be automatically quoted | |
| html_body | No | HTML content when content_type='mixed'. The original message will be automatically quoted in HTML format. Ignored for 'plain' and 'html' types | |
| message_id | Yes | The ID of the original Gmail message to draft a reply for. This maintains proper email threading in the draft | |
| reply_mode | No | Who receives the reply: 'sender_only' = only original sender (default), 'reply_all' = all original recipients, 'custom' = use provided to/cc/bcc parameters | sender_only |
| content_type | No | Content type: 'plain' (text only with quoted original), 'html' (HTML in body param with quoted original), 'mixed' (text in body, HTML in html_body, both with quoted original) | 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 | No | ||
| success | Yes | ||
| draft_id | No | ||
| thread_id | No | ||
| userEmail | Yes | ||
| replied_to | No | ||
| reply_mode | No | ||
| content_type | Yes | ||
| cc_recipients | No | ||
| to_recipients | No | ||
| bcc_recipients | No | ||
| original_message_id | Yes |