List labels
list_labelsLists all system and user labels in a mailbox with IDs, names, and types, sorted by name, so you can find exact label names for searching or modifying emails.
Instructions
List every label of one mailbox: system labels such as INBOX, UNREAD, STARRED, SENT, and the user's own labels (Gmail's folders), each with its id, name and type, sorted by name. Use it to find the exact name for a "label:" search in search_emails, or the name or id to pass to modify_labels. Works on every account, with or without --labels. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which mailbox: email address, alias, or local part. Optional when only one account is connected. |