label_thread
Add labels to an entire email thread, including future messages, using system or user label IDs or names; apply reversibly to one or multiple threads.
Instructions
Add labels to a whole thread (or to a list of threads), future messages included. Labels: system IDs (INBOX, UNREAD, STARRED, IMPORTANT, CATEGORY_*) or user label IDs (list_labels), or their exact names. Archive = unlabel INBOX; mark read = unlabel UNREAD; star = label STARRED. Trash: trash_*; spam, sent and drafts: never. Reversible, no confirmation needed; at most 100 items per call.
Args: threadId: thread ID, or a list of IDs. labelIds: labels to add (IDs or names). createMissing: create missing user labels (default false; otherwise an error).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | Yes | ||
| threadId | Yes | ||
| createMissing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |