Get Unread Count
get_unread_countRetrieve unread email counts per folder to decide whether to fetch emails. A lightweight check before retrieving 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 |