unlabel_thread
Remove labels from one or many Gmail threads to archive, mark read, or unstar them. Specify thread IDs and label IDs or names; changes are reversible and need no confirmation.
Instructions
Remove labels from a whole thread (or from a list of threads). 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 remove (IDs or names).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | Yes | ||
| threadId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |