create_label
Creates Gmail user labels, including nested labels via '/' and missing parent labels; existing labels are returned unchanged and system labels are rejected.
Instructions
Create a user label; 'Projects/2026' is a sub-label of 'Projects'. A label that already exists is returned as it is (nothing created). System labels (INBOX, SPAM, TRASH...) are refused.
Args: displayName: label name; '/' separates nested labels. autoCreateParentLabels: also create missing parent labels (default true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| displayName | Yes | ||
| autoCreateParentLabels | No |