list_mailboxes
Lists mailboxes (folders) inside a specified Apple Mail account, optionally including unread and total message counts.
Instructions
List mailboxes (folders) inside an account.
Args:
account: Account name as returned by list_accounts.
with_counts: If true, include unread_count and total_count per
mailbox. Slow on large accounts — Mail enumerates each folder
to count messages. On a 30k-message iCloud account with 80+
folders this can take 30+ seconds. Default false.
Returns a list of {name, unread_count?, total_count?}.
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_mailboxes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| with_counts | No |