search_emails
Search emails using advanced filters for sender, recipient, subject, date, folder, read status, star, and attachments to locate matching messages and view truncated body previews.
Instructions
🔍 Search emails with advanced filters (returns truncated body preview, attachment metadata only)
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 |
|---|---|---|---|
| to | No | Filter by recipient | |
| from | No | Filter by sender | |
| limit | No | Max results | |
| query | No | Search query | |
| dateTo | No | End date (ISO format) | |
| folder | No | Folder path to search in (e.g., 'INBOX', 'Folders/MyFolder'). Default: INBOX | INBOX |
| isRead | No | Filter by read status | |
| subject | No | Filter by subject | |
| dateFrom | No | Start date (ISO format) | |
| isStarred | No | Filter starred emails | |
| hasAttachment | No | Filter emails with attachments |