Modify message
modify_messageUpdate mailbox messages: mark read/unread, star, label, archive, or move them; if a move returns moved_uid, use that id for later actions.
Instructions
Mark read/unread, star/unstar, add/remove labels (Gmail labels, Outlook categories), move to a folder or archive. A move can change the id of the message: when the result carries moved_uid, use that id from then on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | uid from search_messages: a number on IMAP mailboxes, an id string on Outlook; pass it back exactly as returned | |
| seen | No | ||
| folder | No | Folder/label path. Defaults to All Mail on Gmail, INBOX elsewhere. | |
| account | Yes | Account id from list_accounts | |
| archive | No | Remove from inbox (Gmail) or move to Archive | |
| flagged | No | ||
| move_to | No | Destination folder path | |
| add_labels | No | Gmail only | |
| remove_labels | No | Gmail only |