manage_gmail_label
Create, update, or delete Gmail labels for users, set visibility in label and message lists, and manage email organization efficiently.
Instructions
Manages Gmail labels: create, update, or delete labels.
Args:
user_google_email (str): The user's Google email address. Required.
action (Literal["create", "update", "delete"]): Action to perform on the label.
name (Optional[str]): Label name. Required for create, optional for update.
label_id (Optional[str]): Label ID. Required for update and delete operations.
label_list_visibility (Literal["labelShow", "labelHide"]): Whether the label is shown in the label list.
message_list_visibility (Literal["show", "hide"]): Whether the label is shown in the message list.
Returns:
str: Confirmation message of the label operation.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
label_id | No | ||
label_list_visibility | No | labelShow | |
message_list_visibility | No | show | |
name | No | ||
service | Yes | ||
user_google_email | Yes |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"enum": [
"create",
"update",
"delete"
],
"title": "Action",
"type": "string"
},
"label_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Label Id"
},
"label_list_visibility": {
"default": "labelShow",
"enum": [
"labelShow",
"labelHide"
],
"title": "Label List Visibility",
"type": "string"
},
"message_list_visibility": {
"default": "show",
"enum": [
"show",
"hide"
],
"title": "Message List Visibility",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"service": {
"title": "service",
"type": "string"
},
"user_google_email": {
"title": "User Google Email",
"type": "string"
}
},
"required": [
"service",
"user_google_email",
"action"
],
"title": "manage_gmail_labelArguments",
"type": "object"
}