modify_gmail_message_labels
Add or remove Gmail message labels to organize emails efficiently. Specify email address and message ID to update labels dynamically.
Instructions
Adds or removes labels from a Gmail message.
Args:
user_google_email (str): The user's Google email address. Required.
message_id (str): The ID of the message to modify.
add_label_ids (Optional[List[str]]): List of label IDs to add to the message.
remove_label_ids (Optional[List[str]]): List of label IDs to remove from the message.
Returns:
str: Confirmation message of the label changes applied to the message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
add_label_ids | No | ||
message_id | Yes | ||
remove_label_ids | No | ||
service | Yes | ||
user_google_email | Yes |
Input Schema (JSON Schema)
{
"properties": {
"add_label_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Add Label Ids"
},
"message_id": {
"title": "Message Id",
"type": "string"
},
"remove_label_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Remove Label Ids"
},
"service": {
"title": "service",
"type": "string"
},
"user_google_email": {
"title": "User Google Email",
"type": "string"
}
},
"required": [
"service",
"user_google_email",
"message_id"
],
"title": "modify_gmail_message_labelsArguments",
"type": "object"
}