List folders
list_foldersList every folder in one mailbox (Inbox, Sent, Drafts, Trash, Junk and custom folders) with each folder's exact name, message count and unread count. The names it returns are the valid values for the folder and destination parameters of the other mail tools.
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": {
"mailbox": "<mailbox>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Full mailbox address |