list_messages
Lists Apple Mail message headers newest first with filters for mailbox, unread status, sender, and subject, enabling quick inbox scanning without fetching message bodies.
Instructions
List message headers, newest first, without fetching bodies.
scan bounds how many of the newest messages are examined; limit caps
how many matches come back. Filters are case-insensitive substrings.
Positions in this result feed read_by_position.
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": {
"account": "<account>"
},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | ||
| limit | No | ||
| account | Yes | ||
| mailbox | No | INBOX | |
| unread_only | No | ||
| sender_contains | No | ||
| subject_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |