modify_emails
Batch-update emails by marking read/unread, starring, archiving, trashing, moving, or applying labels across connected accounts.
Instructions
Batch-modify emails using the actions allowed for this connection. Moving requires folder; labels require labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| folder | No | Target folder for action=move | |
| labels | No | Labels for addLabels/removeLabels | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| messageIds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |