bulk_flag
Flag or unflag multiple email messages at once by mailbox or sender substring, using batched updates for efficiency.
Instructions
Flag or unflag multiple messages in one call — by mailbox, sender substring, or both. Queries the Envelope Index for matching IDs then updates in a single batched AppleScript call.
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": {
"flagged": "<flagged>"
},
"name": "bulk_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Substring to match against the sender address or display name. At least one of mailbox or from is required. | |
| limit | No | Maximum number of messages to update in one call. | |
| account | No | Restrict to this account (substring match against mailbox URL host). | |
| flagged | Yes | Target flagged state to apply to every matching message. | |
| mailbox | No | Restrict to this exact mailbox name (matched against mailbox URL). At least one of mailbox or from is required. |