modifyThread
Adds or removes labels on an existing Gmail thread by ID, enabling updates to its organization and filtering.
Instructions
Modify the labels applied to a thread
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": {
"id": "<id>"
},
"name": "modifyThread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the thread to modify | |
| addLabelIds | No | Label IDs to add | |
| removeLabelIds | No | Label IDs to remove |