create_draft
Compose and save an email or threaded reply as a draft without sending it; returns a draft ID for sending or deleting later.
Instructions
Write an email and save it as a draft without sending it — the normal composition path for mail intended for anyone. Also how to compose a REPLY: pass thread_id, plus in_reply_to and references from get_email_thread, so it threads correctly instead of starting a new conversation. Returns a draft_id usable with send_draft or delete_drafts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Optional CC list. | |
| to | Yes | Recipient email address(es). | |
| bcc | No | Optional BCC list. | |
| body | Yes | Email body as plain text. Blank lines separate paragraphs; a single newline is a line break; lines starting with "-" or "1." become bullet/numbered lists. Do NOT pass HTML — matching text/plain and text/html parts are generated from this one string, and "<", ">" and "&" are escaped so they render literally. | |
| account | Yes | Account id ("personal", "tamu"). | |
| subject | Yes | Email subject. | |
| thread_id | No | Optional Gmail thread ID. When set, the draft is created as a reply in that thread. | |
| references | No | Optional RFC 2822 References header value for threading. | |
| attachments | No | Optional local file attachments. | |
| in_reply_to | No | Optional RFC 2822 Message-ID of the email being replied to. Sets the In-Reply-To header for proper threading. |