add_label
Assign a system or custom label to a Gmail message by message ID to organize emails and ensure label names match Gmail exactly.
Instructions
Add a label (system or custom) to an email.
Required:
message_id (str) — Gmail message ID.
label (str) — label name. System labels: STARRED, IMPORTANT,
SENT, DRAFT, TRASH, SPAM. Custom labels: any name you've
created in Gmail settings.
Returns on success:
{"message_id": "...", "labels": ["INBOX", "IMPORTANT", "..."]}}
Workflow note: Label names are case-sensitive in Gmail.
"STARRED" works, "starred" may not. Custom label names
must exactly match how they appear in Gmail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| message_id | Yes |