set_flags
Set message flags like read, unread, or flagged status on iCloud emails to organize and manage your inbox efficiently.
Instructions
Set flags on messages (read, unread, flagged, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Whether to add or remove the flags (default: add) | add |
| flags | Yes | Array of flags to set (e.g., ["\Seen", "\Flagged"]) | |
| mailbox | No | Mailbox name (default: INBOX) | INBOX |
| messageIds | Yes | Array of message IDs to set flags on |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"default": "add",
"description": "Whether to add or remove the flags (default: add)",
"enum": [
"add",
"remove"
],
"type": "string"
},
"flags": {
"description": "Array of flags to set (e.g., [\"\\Seen\", \"\\Flagged\"])",
"items": {
"type": "string"
},
"type": "array"
},
"mailbox": {
"default": "INBOX",
"description": "Mailbox name (default: INBOX)",
"type": "string"
},
"messageIds": {
"description": "Array of message IDs to set flags on",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"messageIds",
"flags"
],
"type": "object"
}