Search emails
search_emailsSearch email archives by query, sender, date range, mailbox, and attachment filters to find matching messages for review or export.
Instructions
Search emails by query, sender, date range, and other filters. Returns a list of matching emails.
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_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of results (1-100, default 25) | |
| query | No | Full-text search query | |
| dateTo | No | Filter: only emails before this date (ISO 8601) | |
| dateFrom | No | Filter: only emails after this date (ISO 8601) | |
| mailboxId | No | Filter by mailbox ID (GUID) | |
| fromAddress | No | Filter by sender email address | |
| hasAttachments | No | Only return emails with attachments |