list_mailboxes
Retrieve all mailboxes for an email account, showing mailbox names and unread message counts. Use this tool to view mailbox structure and monitor unread emails.
Instructions
List all mailboxes for an email account.
Args: account: Account name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified.
Returns: List of mailbox dictionaries with 'name' and 'unreadCount' fields.
Example: >>> list_mailboxes("Work") [{"name": "INBOX", "unreadCount": 5}, ...]
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No |