update_message_labels
Add or remove labels on a single Gmail message in one call, enabling moving between labels or marking messages read and archived together.
Instructions
Add and remove labels on one message in a single call, e.g. move between labels or mark read and archive at once.
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": {
"messageId": "<messageId>"
},
"name": "update_message_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | ||
| addLabelIds | No | ||
| removeLabelIds | No |