Create Gmail draft
gmail_create_draftCreate a Gmail draft without sending it, letting agents prepare emails for user review before they are sent.
Instructions
Create a draft email in the authenticated user's Gmail account without sending it.
When to use:
The agent should prepare an email for later review or sending.
Prefer this over gmail_send_email when the user has not confirmed sending.
Required parameters: to (non-empty array of valid emails), subject, body. Optional: cc, bcc, is_html (default false).
Side effects: Creates a Gmail draft only. Does not send the email.
Success: Returns draft_id, message_id, thread_id, and provider "gmail". Common failures: VALIDATION_ERROR (bad emails/missing fields), AUTHENTICATION_REQUIRED, AUTHORIZATION_DENIED, GOOGLE_API_ERROR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional CC recipient email addresses. | |
| to | Yes | Required. One or more recipient email addresses. | |
| bcc | No | Optional BCC recipient email addresses. | |
| body | Yes | Required. Email body content. | |
| is_html | No | When true, body is treated as HTML. Defaults to false (plain text). | |
| subject | Yes | Required. Email subject line. | |
| idempotency_key | No | Optional unique key reserved for future send idempotency. Not enforced in v1. |