search_messages
Search subject or sender in a specified Apple Mail mailbox case-insensitively, with unread-only and paging options. Use an empty query to list emails.
Instructions
Search subject/sender case-insensitively in one mailbox. Empty query lists messages.
Continue with next_offset even if this page has no matches: a scan also stops after about 30 seconds on slow mailboxes. Mail order is not guaranteed chronological; concurrent mailbox changes can affect pagination.
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_id": "<account_id>",
"mailbox_path": "<mailbox_path>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| offset | No | ||
| account_id | Yes | ||
| scan_limit | No | ||
| unread_only | No | ||
| mailbox_path | Yes |