create_label
Organize Gmail messages by creating new labels with customizable visibility and color settings for better inbox management.
Instructions
Create a new label
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color | No | The color settings for the label | |
labelListVisibility | No | The visibility of the label in the label list | |
messageListVisibility | No | The visibility of messages with this label in the message list | |
name | Yes | The display name of the label |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"color": {
"additionalProperties": false,
"description": "The color settings for the label",
"properties": {
"backgroundColor": {
"description": "The background color of the label as hex string",
"type": "string"
},
"textColor": {
"description": "The text color of the label as hex string",
"type": "string"
}
},
"required": [
"textColor",
"backgroundColor"
],
"type": "object"
},
"labelListVisibility": {
"description": "The visibility of the label in the label list",
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string"
},
"messageListVisibility": {
"description": "The visibility of messages with this label in the message list",
"enum": [
"show",
"hide"
],
"type": "string"
},
"name": {
"description": "The display name of the label",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
}