Add or remove labels (two-phase)
gmail_modify_labelsApply or remove labels on Gmail messages. Preview label changes first, then confirm with token. Remove INBOX label to archive messages.
Instructions
Apply or remove labels on messages. Removing INBOX archives a message. Preview first, then confirm with the token.
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>",
"message_ids": "<message_ids>"
},
"name": "gmail_modify_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| message_ids | Yes | ||
| add_label_ids | No | ||
| confirm_token | No | ||
| remove_label_ids | No |