list_folders
Retrieve all IMAP folder names for a specified email account across Gmail, Outlook, or custom domains. Use it to discover mailbox structure before reading, organizing, or managing messages.
Instructions
List all IMAP folders for an account — returns folder names across any provider (Gmail, Outlook, custom domains).
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": {
"accountId": "<accountId>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The ID of the account to use |