update_thread_labels
Add or remove labels on an entire Gmail thread in one call, letting you organize conversations by applying or clearing multiple label IDs at once.
Instructions
Add and remove labels on a whole thread in one call.
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>"
},
"name": "update_thread_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes | ||
| addLabelIds | No | ||
| removeLabelIds | No |