compose_email
Compose and send new emails with a preview-first confirmation step, or save messages and attachments to drafts instead.
Instructions
Compose and send a new email (not a reply). SAFETY: requires confirm=true to actually send. Without confirm, returns a preview for user review. With save_draft=true, saves the message (attachments included) to the drafts mailbox instead of sending: no confirm needed, nothing is sent (requires himalaya v2).
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": "compose_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipient(s) | |
| to | Yes | Recipient email address | |
| bcc | No | BCC recipient(s) | |
| body | Yes | Email body text | |
| account | No | Account name (uses default if omitted) | |
| confirm | No | Set to true to actually send. Without this, only shows a preview. | |
| subject | Yes | Email subject line | |
| save_draft | No | Save to the drafts mailbox instead of sending. Takes precedence over confirm: nothing is sent. Requires himalaya v2. | |
| attachments | No | Local file paths to attach (e.g. ["/tmp/report.pdf"]) | |
| drafts_folder | No | Mailbox (or alias) for save_draft (default: the account's drafts alias) |