remove_labels
Remove one or more labels from an email message. Use list_labels to find label IDs. Removing INBOX effectively archives the message. Removing UNREAD marks it as read.
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": {
"emailId": "<emailId>",
"labelIds": "<labelIds>"
},
"name": "remove_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Email ID to remove labels from (from search_email or get_email) | |
| labelIds | Yes | Array of label IDs to remove (e.g., ['UNREAD', 'Label_123']) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| message | Yes | ||
| labelIds | No | ||
| threadId | Yes |