set_flags
Update message status by marking emails read or unread and flagging or unflagging them using folder, UID validity, and message UIDs.
Instructions
Mark messages read or unread, and/or flag or unflag them.
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": {
"folder": "<folder>",
"uidvalidity": "<uidvalidity>",
"uids": "<uids>"
},
"name": "set_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seen | No | true = mark read, false = mark unread, omit to leave as is. | |
| uids | Yes | uids from search_messages, all from this one folder. | |
| folder | Yes | Folder name exactly as list_folders or search_messages returned it. | |
| flagged | No | true = flag, false = unflag, omit to leave as is. | |
| uidvalidity | Yes | The uidvalidity that search_messages returned for this folder. |