gws.mail.create_label
Create a new Gmail label with optional parent nesting and custom colors. Returns the label ID to apply to messages via mail.modify_message.
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.
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') |