moveToInbox adds Gmail’s INBOX system label to one or many messages. Use it to return archived mail to the inbox.
Example
Return up to 100 archived messages with theNeeds review label to the inbox:
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.
This action only adds INBOX; it does not explicitly remove SPAM or restore a message from Trash. Use markAsNotSpam for Spam and untrash for Trash. Other labels remain applied.