Flag an email
mark_emailMark an email as read or unread and set or clear a flag to manage message status directly in your mailbox.
Instructions
Mark a message read or unread, and flag or unflag it.
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": {
"uid": "<uid>"
},
"name": "mark_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | IMAP UID of the message. | |
| seen | No | True marks it read, False marks it unread. | |
| folder | No | Folder the message is in. | INBOX |
| flagged | No | True stars/flags it, False clears the flag. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| action | Yes | What was done, e.g. 'moved' or 'marked read'. | |
| detail | No | ||
| folder | Yes |