modify_email
Update email labels in Gmail to mark read/unread, move to folders, or archive.
Instructions
Add or remove labels from an email (mark read/unread, move to folder, archive, etc.)
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": "modify_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | The message ID to modify | |
| addLabelIds | No | Labels to add (e.g., ['IMPORTANT', 'Label_123']) | |
| removeLabelIds | No | Labels to remove (e.g., ['UNREAD', 'INBOX']) |