unlabel_thread
Removes specified labels from all messages in a mail thread, such as clearing UNREAD to mark the entire conversation as read.
Instructions
Removes labels from every message in a thread, e.g. remove UNREAD to mark the whole conversation as read.
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 | Label ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label moves it back to INBOX. | |
| threadId | Yes |