Update Email Status
update_email_statusMark Apple Mail messages as read/unread or flag/unflag them by exact IDs or by subject, sender, and age filters.
Instructions
Update email status - mark as read/unread or flag/unflag emails.
When message_ids is provided, uses exact ID matching (ignores other filters). Otherwise filters by subject, sender, and/or age.
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": {
"account": "<account>",
"action": "<action>"
},
"name": "update_email_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: "mark_read", "mark_unread", "flag", "unflag" | |
| sender | No | Optional sender to filter emails by | |
| account | Yes | Account name (e.g., "Gmail", "Work") | |
| mailbox | No | Mailbox to search in (default: "INBOX") | INBOX |
| flag_color | No | Optional flag color for the "flag" action: "red", "orange", "yellow", "green", "blue", "purple", or "gray". Omit to flag without setting a color — Mail shows its default (red), or the message's previous color if one remains from an earlier flag. Re-colors messages that are already flagged. | |
| max_updates | No | Maximum number of emails to update (safety limit, default: 10) | |
| message_ids | No | Optional list of exact Mail message ids for precise targeting | |
| apply_to_all | No | Must be True to allow updates without any filter | |
| older_than_days | No | Optional age filter - only update emails older than N days | |
| subject_keyword | No | Optional keyword to filter emails by subject | |
| subject_keywords | No | Optional list of subject keywords; matches any keyword |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |