modify_message
Add or remove labels from a specific Gmail message using its ID. Streamline email organization by updating label assignments directly through Gmail MCP.
Instructions
Modify the labels on a message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addLabelIds | No | A list of label IDs to add to the message | |
| id | Yes | The ID of the message to modify | |
| removeLabelIds | No | A list of label IDs to remove from the message |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"addLabelIds": {
"description": "A list of label IDs to add to the message",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "The ID of the message to modify",
"type": "string"
},
"removeLabelIds": {
"description": "A list of label IDs to remove from the message",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"id"
],
"type": "object"
}