Change message labels / state
modify_messageChange a Gmail message's state through labels: mark it read or unread, star or unstar it, archive or restore it to the inbox, and add or remove custom labels. Apply one or more label changes at once without deleting the message.
Instructions
Changes a message's state via Gmail labels: read=true/false marks read/unread, starred=true/false stars/unstars, archived=true removes it from the inbox (archived=false moves it back), and add_label_ids/remove_label_ids apply or strip any labels from list_labels (e.g. a user label, or IMPORTANT). At least one change is required; applying the same change twice is harmless. This never deletes anything — use manage_trash for the trash. Returns the message's new id/labelIds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | true = mark read, false = mark unread. | |
| starred | No | true = star, false = unstar. | |
| archived | No | true = archive (remove from inbox), false = move back to inbox. | |
| message_id | Yes | The message id from list_messages/get_thread output (not the RFC Message-ID header). | |
| add_label_ids | No | Label ids to add. | |
| remove_label_ids | No | Label ids to remove. |