modify_email
Add or remove labels, mark as read/unread, archive, or trash a Gmail message using its ID.
Instructions
Modify a single email: add/remove labels, mark as read/unread, archive, or move to trash.
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": "modify_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Gmail message ID | |
| addLabelIds | No | Label IDs to add (e.g. 'STARRED', 'IMPORTANT', or custom label ID) | |
| removeLabelIds | No | Label IDs to remove (e.g. 'UNREAD', 'INBOX') |