search_emails
Search emails in any folder using IMAP query syntax (UNSEEN, FROM, SUBJECT, SINCE) with optional result limits and folder targeting.
Instructions
Search emails. IMAP syntax: ALL, UNSEEN, SEEN, FLAGGED, DRAFT, FROM "user@example.com", SUBJECT "word", BODY "word", SINCE 15-Mar-2024, BEFORE 20-Mar-2024
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 50) | |
| query | Yes | IMAP search query | |
| folder | No | Folder to search (default INBOX) |