label_thread
Add or remove labels on all messages in a Gmail thread. Archive threads, mark as read, or apply custom labels.
Instructions
Add/remove labels on every message in a thread. INBOX/STARRED/UNREAD/IMPORTANT/SPAM/TRASH or user label ids. Mark read: remove ["UNREAD"]. Archive: remove ["INBOX"]. Requires gmail.modify scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | A connected account ref (see list_accounts). | |
| thread_id | Yes | ||
| add_label_ids | No | ||
| remove_label_ids | No |