save_draft_email
Compose an email and save it to the account's Drafts folder for review before sending; each call creates a new draft you can edit and send from your mail client.
Instructions
Compose an email and save it to the account's Drafts folder without sending it.
The message is appended to the special-use Drafts folder with the \Draft flag, so the user can review, edit and send it from their own mail client. Use this instead of send_email whenever the user wants to check a message first. Each call creates a new draft.
Args: account: Account name from list_accounts. to: Recipient email addresses. subject: Subject line. body: Plain-text body. cc: Cc recipient addresses. bcc: Bcc recipient addresses. html: Optional HTML alternative to the plain-text body. attachments: Local file paths to attach. in_reply_to: Message-ID this draft replies to, for threading. references: Message-IDs of earlier messages in the thread.
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": "save_draft_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| body | Yes | ||
| html | No | ||
| account | Yes | ||
| subject | Yes | ||
| references | No | ||
| attachments | No | ||
| in_reply_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | Yes | ||
| to | Yes | ||
| bcc | Yes | ||
| from | Yes | ||
| subject | Yes | ||
| message_id | Yes | ||
| size_bytes | Yes | ||
| saved_to_folder | Yes |