Get Unread Count
get_unread_countReturn unread email counts for each folder so you can check for new mail before deciding whether to fetch full messages.
Instructions
Get unread email count for each folder. Cheap call — use this before get_emails to decide whether to fetch. Returns object mapping folder path to unread count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totalUnread | Yes | ||
| unreadByFolder | Yes | Folder path -> unread count |