list_folders
List available mail folders for an email account, returning top-level folders by default or child folders when a parent folder ID is provided.
Instructions
List available mail folders. Returns top-level folders by default, or child folders of the given parent when parentFolderId is provided.
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 | ||
| parentFolderId | No | When provided, lists child folders of this folder. When omitted, lists top-level folders (children of the root). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| account | Yes |