mail_search
Search and list emails across folders or mailboxes by keywords, sender, date range, and unread status; returns previews for opening full messages.
Instructions
List or search mails, newest first. Without filters it lists the folder.
folder: inbox, sent, drafts, trash, junk, archive, a path from mail_folders, or "all" for every mail folder of the account (slower)
query: words that must all appear in subject, text or sender name
sender: part of the sender's name or address
since / until: YYYY-MM-DD, 'heute'/'today', 'gestern'/'yesterday' or '7d' (last 7 days)
account: a mailbox; omit to search all mailboxes at once Returns previews only (dates carry the weekday); use mail_read for the full text.
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": "mail_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| since | No | ||
| until | No | ||
| folder | No | inbox | |
| sender | No | ||
| account | No | ||
| unread_only | No |