unlabel_thread
Remove labels from one or more entire email threads to archive, mark as read, or reorganize them reversibly in Gmail.
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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"threadId": "<threadId>",
"labelIds": "<labelIds>"
},
"name": "unlabel_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | Yes | ||
| threadId | Yes |