List Gmail Labels
list_gmail_labelsRetrieve Gmail labels for a user account, filtering by name prefix and optionally excluding system labels for a cleaner result.
Instructions
Lists labels in the user's Gmail account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Return only labels whose name starts with this exact (case-sensitive) string. users.labels.list accepts no filter, so the full list is fetched and narrowed here: this shrinks what the caller receives, not the API call. | |
| compact | No | Return minimal JSON {"count", "labels": [{"id", "name"}]} sorted by name, instead of the formatted text list. For callers that parse the result, e.g. a label cache refresh. | |
| include_system | No | Include Gmail system labels (INBOX, SENT, ...). Set False to return user labels only. | |
| user_google_email | Yes | The user's Google email address. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |