List Gmail labels
gmail_list_labelsList all Gmail labels (system and user) with IDs to map label names to IDs for use in label modification operations.
Instructions
List every label in an account — system labels (INBOX, UNREAD, STARRED, SPAM, TRASH, ...) and user labels — with their ids. gmail_modify_labels operates on label IDS, so call this first to translate names to ids.
Args:
account (string, optional): email or alias. Omit for the default account.
response_format: 'markdown' (default) or 'json'.
Returns: label name, id, and type (system/user) for every label.
Examples:
{}
{"account": "work", "response_format": "json"}
Error Handling: expired credentials return a re-auth instruction naming the account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Email or alias of the account to use. Omit to use the default account. Call gmail_list_accounts if unsure. | |
| response_format | No | Output format: 'markdown' for compact human-readable rendering (default), 'json' for the full normalized structure. | markdown |