Create a label
create_labelCreates a new mailbox label and returns its ID and name for organizing mail, supports slash-based nested labels, and fails if the label already exists.
Instructions
Create a new user label in one mailbox and return its id and name, ready for modify_labels. Use it when the user wants mail filed under a label that list_labels does not show yet. A "/" makes a nested label, e.g. "Projects/Acme". Fails if a label with that name already exists. Only for accounts connected with --labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new label's name; "/" nests it under a parent. | |
| account | No | Which mailbox: email address, alias, or local part. Optional when only one account is connected. |