List folders
list_foldersRetrieves an account's mail folders and shows each folder's role, total messages, and unread count, so you can inspect mailbox structure before choosing a folder.
Instructions
List folders of an account with their special-use role (inbox, sent, drafts, trash, junk, archive, all, flagged) and message/unread counts.
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 | Account id from list_accounts |