list_folders
List every IMAP folder in an account to get folder names, flags, hierarchy delimiter, and detected roles for reading, searching, or sending email.
Instructions
List every IMAP folder (mailbox) in an account.
Each entry has the folder name to use in other tools, its raw IMAP
flags, the hierarchy delimiter, and a detected role (inbox, sent,
trash, drafts, junk, archive, all, flagged, important) based on RFC 6154
SPECIAL-USE flags, or null for ordinary folders.
Args: account: Account name from list_accounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |