Gmail messages are modified and archived without requiring confirmation of the matches
Source references: 4After searching, the workflow immediately directs two write operations. It does not require showing the user the final query, match count, or message samples, or obtaining explicit approval before archiving. Labeling and archiving are also separate operations, so interruption can leave only one completed.
If the query, `MESSAGE_ID`, or `LABEL_ID` is substituted incorrectly, unintended messages may be misclassified and removed from the inbox, causing the user to miss them. Archiving is generally reversible, but the user may not notice promptly.
These are active workflow instructions: after searching, they directly tell the agent to add a label and remove INBOX from a specified MESSAGE_ID, without a preview or pre-write confirmation step. If an agent substitutes a broad query and processes its results, messages the user has not reviewed could be archived; because the two modifications are separate, interruption could also leave only the label applied. Archiving is the skill’s stated purpose, not concealed behavior, but users can ask for result counts/samples, explicit confirmation, and recovery guidance.
1. Search for matching emails: `gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table`2. Apply a label: `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'`3. Archive (remove from inbox): `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'`Show 3 other places
Apply Gmail labels to matching messages and archive them to keep your inbox clean.1. Search for matching emails: `gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table`2. Apply a label: `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'`3. Archive (remove from inbox): `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'`2. Apply a label: `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'`3. Archive (remove from inbox): `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'`