Search messages
search_messagesSearch an iCloud mailbox by sender, recipient, subject, text, date, unread or flagged status, and return matching message headers with short snippets for quick review.
Instructions
Searches one mailbox, newest first. All filters are optional and combine with AND; with none, returns the most recent messages. Returns headers and a short snippet per message. Use get_message for the full body.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient name or address contains this text. | |
| from | No | Sender name or address contains this text. | |
| text | No | Headers or body contain this text. | |
| limit | No | ||
| since | No | Only messages on or after this date (YYYY-MM-DD). | |
| before | No | Only messages before this date (YYYY-MM-DD). | |
| offset | No | Skip this many results, for paging. | |
| unread | No | true for unread only, false for read only. | |
| flagged | No | true for flagged only, false for unflagged only. | |
| mailbox | No | Folder path from list_mailboxes. Defaults to "INBOX". | INBOX |
| subject | No | Subject contains this text. |