List contact groups
list_contact_groupsRetrieve Google contact groups with names, types, and member counts. Use pagination or sync tokens to page through large label sets or fetch only changes since the last listing.
Instructions
Lists the account's contact groups (labels): contactGroups[] with resourceName (contactGroups/), name, groupType and memberCount, plus nextPageToken and totalItems. Two kinds come back: USER_CONTACT_GROUP (labels the user created — the only kind that can be renamed or deleted) and SYSTEM_CONTACT_GROUP (built-ins like contactGroups/myContacts and contactGroups/starred — fixed). group_fields defaults to metadata, groupType, memberCount, name; add memberCount explicitly if you narrow it and still want sizes. page_size up to 1000; sync_token works like in list_contacts (410 = expired, re-list in full).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | Groups per page (1..1000, default 30). | |
| page_token | No | nextPageToken from the previous page. | |
| sync_token | No | Sync token from a previous listing — only changes since then. | |
| group_fields | No | Group fields to return (default metadata, groupType, memberCount, name). |