draft_email
Create a draft email in a selected account for review before sending, with Markdown body, optional signatures, and reply or forward support.
Instructions
Create a draft email from the given account without sending it. Body content must be Markdown only, without raw HTML; use a blank line between paragraphs. Works identically to send_email — when include_signature is true, uses Gmail's signature first and local fallback only when Gmail returns none. Do not also include a signature in the body; fails if no signature exists or lookup fails. Applies style and supports replies and forwards — but saves the message to the Drafts folder instead of sending. Returns the draft message ID and the draft's Markdown body (draftMarkdown). Copy selections from this complete current body or read_email in Markdown. Explicit HTML remains available through read_email(format: 'html'). Returns the draft's shareable webUrl when available; recipients must have access to the mailbox to open it.
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>",
"include_signature": "<include_signature>"
},
"name": "draft_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| body | Yes | Email content in Markdown only; raw HTML is not supported. Use a blank line between paragraphs. | |
| account | Yes | ||
| subject | Yes | ||
| replyAll | No | When true and `inReplyTo` is set, reply to all recipients instead of just the sender. | |
| inReplyTo | No | Message ID to reply to. When set, sends as a threaded reply which includes the quoted thread history automatically. Set to `false` for a new email (not a reply). | |
| attachments | No | File attachments to include. The server reads the files from disk and base64-encodes them automatically. | |
| forwardMessageId | No | Message ID to forward. When set, sends as a forward of the specified message, preserving the original content. Mutually exclusive with `inReplyTo`. | |
| include_signature | Yes | Whether to append the HTML signature: Gmail first, local fallback only when Gmail returns none; other providers use local. If true, don't include a signature in the body param to avoid double signature. Returns an error if true but no signature is configured for this account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| draft | Yes | ||
| webUrl | No | ||
| warning | No | ||
| draftMarkdown | No | ||
| draftReadbackError | No | ||
| webUrlUnavailableReason | No |