createDraft
Composes and saves a Gmail draft with recipients, subject, body, attachments, and optional thread association, so you can prepare an email without sending it immediately.
Instructions
Create a draft email in Gmail. Note the mechanics of the raw parameter.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "createDraft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | List of CC recipient email addresses | |
| to | No | List of recipient email addresses. Each entry must be either 'addr@example.com' or 'Display Name <addr@example.com>'; non-ASCII display names are RFC 2047 encoded automatically. Other RFC 5322 forms (groups, comments, a quoted display name containing a '<') are sent through unencoded. | |
| bcc | No | List of BCC recipient email addresses | |
| raw | No | The entire email message in base64url encoded RFC 2822 format, ignores params.to, cc, bcc, subject, body, includeBodyHtml if provided | |
| body | No | The body of the email. Supports plain text or HTML (auto-detected). Use HTML tags like <p>, <br>, <b> for formatted emails. | |
| subject | No | The subject of the email | |
| threadId | No | The thread ID to associate this draft with | |
| attachments | No | File attachments to include | |
| includeBodyHtml | No | Whether to include the parsed HTML in the return for each body |