get_mailbox_unread_counts
Retrieve unread email counts from Apple Mail mailboxes, with options to filter by account, include zero counts, or get inbox-only summaries.
Instructions
Get unread counts per mailbox for one account or all accounts.
When summary_only=True, returns only per-account inbox unread totals (replaces the former get_unread_count tool).
Args: account: Optional account name filter include_zero: Whether to include mailboxes with zero unread messages summary_only: If True, return only per-account inbox unread totals (flat dict of account name -> unread count)
Returns: If summary_only=False: nested dict keyed by account name then mailbox path If summary_only=True: flat dict mapping account names to inbox unread counts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| include_zero | No | ||
| summary_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |