create_draft
Compose and save an outbound email as a local draft, with optional sync to Proton Drafts IMAP. Use to review before sending.
Instructions
Save a new outbound message as a local draft in SQLite, optionally syncing it to the Proton Drafts IMAP folder. Use to compose and review before sending. Prefer create_reply_draft when replying to a specific emailId, or create_forward_draft when forwarding. Returns a draftId for later update, sync, or send via send_draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient email addresses, comma-separated. | |
| cc | No | CC recipient email addresses, comma-separated. | |
| bcc | No | BCC recipient email addresses, comma-separated. | |
| subject | Yes | Draft subject. | |
| body | Yes | Draft body. | |
| isHtml | No | Whether the body should be HTML. | |
| priority | No | ||
| replyTo | No | Optional reply-to email address. | |
| notes | No | Optional local note for the draft. | |
| syncToRemote | No | Whether to sync the draft to the Proton Drafts mailbox when IMAP is available. | |
| attachments | No | Attachments with base64 encoded content. |