manage_gmail_label
Create, update, or delete Gmail labels for any user. Specify the action and account email, then set label name or ID and visibility options to organize mail.
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 |
|---|---|---|---|
| name | No | ||
| action | Yes | ||
| label_id | No | ||
| user_google_email | Yes | ||
| label_list_visibility | No | labelShow | |
| message_list_visibility | No | show |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |