search_emails
Search emails by subject or sender, filter by date, mailbox, account, unread status, sort order, and limit to find specific messages.
Instructions
Search or list emails by subject/sender.
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 |
|---|---|---|---|
| sort | No | Sort by date: desc (default) or asc (oldest first). | |
| after | No | Only emails after this date (YYYY-MM-DD). | |
| limit | No | Max results (default 10). | |
| query | No | Search subject/sender. Omit for recent. | |
| before | No | Only emails before this date (YYYY-MM-DD). | |
| account | No | Account. Omit for all. | |
| mailbox | No | Mailbox (default: INBOX). | |
| unread_only | No | Only return unread emails. |