markAsUnread adds Gmail’s UNREAD system label to one or many messages. Use it to return processed mail to a person’s review queue or preserve a reminder in Gmail.
Example
Mark up to 100 read messages with theNeeds review label as unread:
Inputs
Every input field also accepts a compatible
Signal; the example derives message IDs from searchMessages.
Output
The action returns aSignal<string[]> containing the modified message IDs in input order.
Gmail stores unread state per message. Adding UNREAD to one message can make its conversation appear unread in Gmail even though other messages in the thread remain read.