Mark, star, color or label messages
mailbox_update_messagesBulk-change message state—mark read/unread, star, set OX colors, or add/remove labels by UIDs or Gmail-style query without moving or deleting messages.
Instructions
Change state on many messages at once: read/unread, star, OX color (red, orange, yellow, light green, green, light blue, blue, purple, pink, gray), and labels (IMAP keywords such as $purchases, $social or your own words; shown as categories/labels). Select by uids or by a Gmail-style query. Nothing is moved or deleted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mailbox_update_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Safety cap on how many messages a query may touch. The tool refuses when more match; raise it deliberately. | |
| star | No | true = star (flag), false = unstar | |
| uids | No | Exact message UIDs in `folder`. Give either uids or query. | |
| color | No | Set an OX color label; 'none' clears it | |
| query | No | Select by query instead of UIDs (searches `folder` unless the query has in:...). Gmail-style query. Examples: from:amazon is:unread | subject:"invoice" newer_than:30d | has:attachment larger:5M | label:$purchases | color:red | is:starred -from:me | has:unsubscribe older_than:6m | (from:a OR from:b) | in:Archive. Bare words search headers and body. Empty = all messages. | |
| folder | No | Folder path, e.g. "INBOX", "Archive", "INBOX/newsletters". Names like archive, trash, junk, sent, drafts also work. | INBOX |
| dry_run | No | true = only report what would change | |
| mark_read | No | true = read, false = unread | |
| add_labels | No | Labels to add, e.g. ["receipts"] or ["$purchases"]. Spaces are not allowed in IMAP keywords; they become "-". | |
| remove_labels | No |