Toolboxes
The Mail toolbox integrates with macOS Mail, allowing AI assistants to search emails, read messages, compose replies, and manage your inbox.
Requirements
- Permissions: Full Disk Access, Automation
Full Disk Access is required to read the Mail database. Automation is required for composing emails.
Tools
| Tool | Description |
|---|---|
mail_list_accounts | List all configured email accounts |
mail_list_mailboxes | List mailboxes with optional account filter |
mail_search_messages | Search messages with flexible filters |
mail_get_messages | Get full content by ID or signature |
mail_get_attachment | Export attachment as base64-encoded data |
mail_compose_message | Create and send a new email |
mail_reply_message | Reply to a message |
mail_forward_message | Forward to new recipients |
mail_update_read_state | Mark as read or unread |
mail_move_message | Move to a different mailbox |
mail_delete_message | Move to Trash (not permanent) |
mail_open_message | Open in Mail.app via message:// URL |
Attachments
Mail toolbox supports full attachment handling:
- Search — Results include
has_attachmentsfield for quick filtering - Read — Messages include attachment metadata (filename, MIME type, size)
- Export — Use
mail_get_attachmentto get attachment content as base64 or save to file - Send — Compose, reply, and forward support
attachment_pathsfor attaching local files
Example Usage
- "Show unread emails from today"
- "Find emails from John about the project"
- "Reply to the last email from my boss"
- "Archive all newsletters"
- "Compose an email to the team about tomorrow's meeting"
Related Workflows
Ready-to-use prompts for email automation:
- AI Email Triage - Automatically categorize and prioritize emails
- Inbox Zero Workflow - Process inbox to zero daily
- Smart Reply Suggestions - Generate contextual replies
- Newsletter Summarization - Summarize long newsletters
- Email to Task Conversion - Extract action items from emails