List labels / folders
list_labelsLists Gmail labels or IMAP folders with their IDs for one or more accounts, enabling targeted organization and filtering.
Instructions
List Gmail labels (or IMAP folders) with their ids for one or more accounts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which mailbox(es): an alias, an email address, a list of them, or "all". Omit to use ALL connected accounts. No accounts connected yet. |