list_folders
Lists IMAP folders for a specified email account, optionally including message and unseen counts, so you can inspect available mailbox folders and roles.
Instructions
List folders of an account (or "all"). special_use is the role the server flags (SPECIAL-USE); alias is the alias (sent, drafts, trash, junk, archive, all) that resolves to the folder, which also covers folders matched by name when the server sends no flag.
with_counts=true adds message/unseen counts (slower: one STATUS per folder).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 | ||
| with_counts | No |