Set read state and star
set_flagsMarks Proton Mail messages as read or unread and stars or unstars them in one call. Use it to update message status without changing content or mailbox location.
Instructions
Marks messages as read or unread and sets or clears the star. At least one of the two has to be given. This changes nothing about where a message sits and nothing about its content. Proton shows the star as the "Starred" mailbox.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messageIds": "<messageIds>"
},
"name": "set_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | True marks the messages as read, false as unread. Omit to leave it alone. | |
| mailbox | No | The mailbox the messages are in, if they share one. Only a shortcut: without it every message is looked for across the mailboxes it could be in, which costs a request each. | |
| starred | No | True stars the messages, false removes the star. Omit to leave it alone. | |
| messageIds | Yes | The message ids, as they came from a listing or a search. At most 50 per call. |