Skip to content

Mulla759/GWSforDummies / .claude/skills/gws-gmail-users-messages-modify

gws-gmail-users-messages-modify

Verified

Gmail: Modify the labels applied to a specific message.

gmail users messages modify

Modify the labels applied to a specific message (e.g. add custom labels, archive by removing "INBOX", mark as read by removing "UNREAD").

Usage

gws gmail users messages modify --params '<JSON_PARAMS>' --json '<JSON_BODY>'

Parameters (--params JSON)

ParameterRequiredDefaultDescription
userId✓—The user's email address or "me" for the authenticated user
id✓—The Gmail message ID

Request Body (--json JSON)

FieldTypeDescription
addLabelIdsArray of stringsList of label IDs to add to the message.
removeLabelIdsArray of stringsList of label IDs to remove from the message.

Examples

# Mark a message as read (remove UNREAD)
gws gmail users messages modify --params '{"userId": "me", "id": "19ea3ab6ef5d5f9f"}' --json '{"removeLabelIds": ["UNREAD"]}'

# Archive a message (remove INBOX)
gws gmail users messages modify --params '{"userId": "me", "id": "19ea3ab6ef5d5f9f"}' --json '{"removeLabelIds": ["INBOX"]}'

# Add a custom triage label and mark as read
gws gmail users messages modify --params '{"userId": "me", "id": "19ea3ab6ef5d5f9f"}' --json '{"addLabelIds": ["triage/done"], "removeLabelIds": ["UNREAD"]}'

Tips

  • Label IDs are case-sensitive. Built-in labels are typically uppercase (e.g., "INBOX", "UNREAD", "STARRED", "IMPORTANT", "SPAM", "TRASH").
  • Custom user labels should use their exact name (e.g., "triage/done" or "Work").
  • Removing "INBOX" effectively archives the message.
  • To perform modifications on a whole thread of messages, use gws gmail users threads modify.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall