Merge duplicate Gmail labels
merge_duplicate_gmail_labelsRe-label every message carrying any of a set of duplicate labels with one label to keep, then delete the emptied duplicates. Ask the user to confirm before calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. | |
| labelIds | Yes | All label IDs in the duplicate group, including the one to keep | |
| keepLabelId | Yes | The label ID that should survive; the rest are relabeled away and deleted |