create_draft
Create email drafts for new messages or threaded replies in your IMAP account's Drafts folder, with automatic header management for proper threading.
Instructions
Create a new email draft in the Drafts folder. Returns {id, subject, to, date} of the created draft. Optionally set in_reply_to with an email id to create a threaded reply draft (sets In-Reply-To and References headers automatically).
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": {
"to": "<to>",
"subject": "<subject>",
"body": "<body>"
},
"name": "create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient email address. | |
| subject | Yes | Email subject line. | |
| body | Yes | Plain text email body. | |
| cc | No | CC recipient(s). | |
| bcc | No | BCC recipient(s). | |
| in_reply_to | No | ID of the email being replied to (for threading). Automatically sets In-Reply-To and References headers. |