search_emails_batch
Search up to 20 email accounts at once with one portable query and return one result group per account, with filters for dates, folders, read status, attachments, and snippets.
Instructions
Search up to 20 accounts with one portable query and return one result group per account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| read | No | ||
| after | No | YYYY-MM-DD received date, inclusive in UTC | |
| query | Yes | Typed portable search syntax | |
| before | No | YYYY-MM-DD received date, exclusive in UTC | |
| folder | No | ||
| starred | No | ||
| subject | No | ||
| accounts | Yes | ||
| pageSize | No | Defaults to 25 | |
| hasAttachment | No | ||
| includeSnippet | No | Request or suppress message previews | |
| includeSearchContext | No | Include a match-centered body excerpt; requires a portable text query |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |