unlabel_thread
Remove labels from every message in a Gmail conversation to archive a thread or mark it read. Apply label IDs like INBOX or UNREAD to update the whole thread at once.
Instructions
Remove labels from EVERY message in a conversation (users.threads.modify). Pass label_ids=["INBOX"] to archive an entire thread, or ["UNREAD"] to mark the whole conversation 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": {
"account": "<account>",
"thread_id": "<thread_id>",
"label_ids": "<label_ids>"
},
"name": "unlabel_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account id ("personal", "tamu"). | |
| label_ids | Yes | Label IDs to remove from every message in the thread. | |
| thread_id | Yes | Gmail thread id. |