mail_list_folders
List all iCloud Mail folders with total and unread counts to discover exact folder names other mail tools accept, fixing unknown-folder or open errors.
Instructions
List every mail folder with its total and unread message counts, so you know the exact names other mail tools accept.
Use when: a folder name is unknown, a tool reported "Could not open the folder", or you want to see where mail is filed. Not for finding messages (use mail_search_messages) or for what changed recently (use mail_list_changes). Parameters: none; it always covers the whole account. Behavior: read-only; opens no folder and changes no flags. Folders that cannot hold mail (IMAP \Noselect) are left out. Special folders are also reachable in every mail tool by the aliases Sent, Drafts, Trash, Junk and Archive; the main folder is INBOX. Returns: a list of {name, special_use, total, unseen}; special_use is the IMAP flag such as \Sent or null. total and unseen are null when the server would not report them for that folder. The list is never empty (INBOX always exists). Errors: a sign-in or connection failure raises an error; run icloud_check_health to see which service is down.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||