list_folders
Lists every IMAP mailbox in an account, returning folder names, flags, hierarchy delimiter, and detected role for use in other email tools.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |