flag_message
Flag or unflag up to 100 messages by ID, optionally setting a color; if Mail is closed, it opens hidden in the background to apply the change.
Instructions
Flag or unflag messages (at most 100). Give 'color' to flag with a color. Without 'color', Mail uses its default flag. If Mail is not running, applesauce opens it hidden in the background and leaves it open.
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": {
"ids": "<ids>",
"flagged": "<flagged>"
},
"name": "flag_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Message ids from search_mail. At most 100. | |
| color | No | Flag color. Needs 'flagged' true. | |
| flagged | Yes | true to flag, false to remove the flag. | |
| in_account | No | Account id of the message (the 'account_id' field of search_mail). Only needed with 'in_mailbox'. | |
| in_mailbox | No | Mailbox path of the message (the 'mailbox' field of search_mail). Only needed when Full Disk Access is missing. Give 'in_account' too. |