flag_message
Set or remove a flag on an email message in Apple Mail, optionally specifying a color index to mark importance or categorize the item.
Instructions
Set or clear the flag on a message. Optionally specify a flag colour index.
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": {
"messageId": "<messageId>",
"mailboxName": "<mailboxName>",
"accountName": "<accountName>",
"flagged": "<flagged>"
},
"name": "flag_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flagged | Yes | Whether to flag (true) or unflag (false) the message | |
| flagIndex | No | The flag colour index (optional, default -1) | |
| messageId | Yes | The numeric ID of the message | |
| accountName | Yes | The name of the account containing the mailbox | |
| mailboxName | Yes | The name of the mailbox containing the message |