list_mailboxes
List email folders and discover their names, hierarchy, and flags to prepare for moving or organizing messages.
Instructions
List available mailboxes/folders for an email account. Returns folder names, hierarchy delimiters, and flags. Useful for discovering folder names before moving emails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | IMAP LIST pattern. Use '*' for all folders, 'INBOX.*' for INBOX children. | * |
| reference | No | IMAP LIST reference name (namespace prefix). Usually empty. | |
| account_name | Yes | The name of the email account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |