listFolders
listFoldersLists locally known mail folders for a connection with their keys, paths, and indexed message counts so you can select a folder key for message listing or search.
Instructions
List locally known folders in one connection, with folder keys, paths and local indexed message counts. Pass a folder's key as folder to listMessages or search; keep the same connection. synced=false means a completed folder sync has not been recorded and messages may be missing. synced=true does not guarantee current mail; use syncStatus for the latest sync's time and outcome. This tool does not discover folders on the server.
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": {
"connection": "<connection>"
},
"name": "listFolders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Connection name from listConnections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folders | Yes | Folders. | |
| connection | Yes | Connection name. |