Search Emails
search-emailsSearch iCloud email folders by text, sender, subject, or unread status. Results include handles to read or mark messages as read.
Instructions
Searches one mail folder (inbox by default) by free text, sender, subject and unread state; the filters combine as AND. Results carry the same summary fields as list-emails, including the ref handle that read-email and mark-as-read take.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender | |
| count | No | Max results (default: 25, max: 50) | |
| query | No | Text to search in email content | |
| folder | No | Email folder to search (default: inbox) | |
| subject | No | Filter by subject | |
| unreadOnly | No | Only show unread emails |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Matching emails | |
| total | Yes | Number of items returned |