search_messages
Find iCloud Mail messages by sender, recipient, subject, text, date, read status, or mailbox using AND filters; returns newest headers first.
Instructions
Search messages in a mailbox. All conditions are combined with AND. Returns headers only, newest first.
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 address or name contains | |
| from | No | Sender address or name contains | |
| text | No | Headers or body contains | |
| limit | No | ||
| since | No | On or after this date (YYYY-MM-DD) | |
| before | No | Before this date (YYYY-MM-DD) | |
| unread | No | true: unread only, false: read only | |
| mailbox | No | INBOX | |
| subject | No | Subject contains |