set_mail_message_flags
Update email message flags by message ID to mark as read/unread, starred, or answered while leaving other flags unchanged.
Instructions
Set or clear flags on a message: read/unread, starred, answered.
Only the flags you pass change; the others keep their current value.
Args: message_id: The message database ID. Use list_mail_messages to find it. seen: True marks the message as read, false as unread. flagged: True stars (flags) the message, false removes the star. answered: True marks the message as answered, false clears that mark.
Returns: JSON object with message_id and the flags that were set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seen | No | ||
| flagged | No | ||
| answered | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |