gws.mail.create_label
Create a new Gmail label, supporting nesting via '/' in the name (e.g., 'Projects/Alpha'). Returns the label ID, which you can pass to mail.modify_message to apply it.
Instructions
Create a new Gmail label. Use '/' in the name to nest under a parent (e.g. 'Projects/Alpha'). Returns the new label's ID, which you pass to mail.modify_message to apply it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "gws.mail.create_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label name (e.g., 'Projects/Alpha') | |
| account | No | Account label or email. Uses default if omitted. | |
| textColor | No | Label text color hex (e.g., '#ffffff') | |
| backgroundColor | No | Label background color hex (e.g., '#16a765') |