Search emails
search_emailsSearch email messages by sender, recipient, subject, body text, folder, or date range using server-side IMAP search. Returns matching results to locate relevant correspondence quickly.
Instructions
Search messages (case-insensitive substring match). since/before are dates (YYYY-MM-DD); since is inclusive, before exclusive. Runs server-side via IMAP SEARCH.
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 | ||
| from | No | ||
| text | No | Matches headers or body | |
| limit | No | ||
| since | No | ||
| before | No | ||
| folder | No | Mailbox folder (IMAP). POP3 only supports INBOX. | INBOX |
| subject | No |