modify_thread_labels
Add and/or remove labels on EVERY message of a Gmail thread in a single call. Same label id rules as modify_message_labels. Pass account when more than one Gmail account is connected (see list_accounts). Needs gmail.modify — accounts connected before this feature get a reconnect hint. This actually changes the mailbox — confirm with the user before calling for anything beyond routine triage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account label the thread belongs to. Required when several Gmail accounts are connected. | |
| thread_id | Yes | Gmail thread id (a search result's external_id, or from get_thread). | |
| add_label_ids | No | Label ids to add (see list_labels for ids; system labels like STARRED/IMPORTANT/UNREAD also work). | |
| remove_label_ids | No | Label ids to remove. |