update_label
Rename a Gmail label and/or change its display settings (sidebar/message-list visibility). The current name is matched case-insensitively but EXACTLY (never partially), same as delete_label; system labels (INBOX/STARRED/CATEGORY_* …) are refused. Pass account when more than one Gmail account is connected. Needs gmail.modify — accounts connected before this feature get a reconnect hint. This changes an existing label definition — confirm with the user before renaming one they rely on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Current label name to change, matched case-insensitively but EXACTLY (never partially) — same lookup rule as delete_label. | |
| account | No | Account label the label belongs to (see list_accounts). Required when several Gmail accounts are connected. | |
| new_name | No | New name — renames the label. Omit to leave the name unchanged. | |
| label_list_visibility | No | New sidebar visibility. | |
| message_list_visibility | No | New message-list visibility. |