list_labels
List all labels for an email account, automatically detecting ProtonMail folders, Gmail labels, or IMAP keywords. Use returned label names to filter emails by category.
Instructions
List available labels for an email account. Auto-detects the label system: ProtonMail folder-labels, Gmail X-GM-LABELS, or IMAP keywords. ProtonMail note: labels are represented as IMAP folders under the Labels/ prefix. Use list_emails with mailbox="Labels/" to find emails tagged with a ProtonMail label.
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_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name from list_accounts |