search_emails
Find emails in any IMAP account by filtering sender, subject, date, folder, or body keywords, including Gmail, Outlook, and custom domains.
Instructions
Search emails via IMAP — works with any provider (Gmail, Outlook, custom domains). Filter by sender, subject, date, or keywords.
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": {
"accountId": "<accountId>"
},
"name": "search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender | |
| count | No | The number of emails to retrieve (default: 10) | |
| since | No | Filter by date (ISO format) | |
| before | No | Filter by date (ISO format) | |
| folder | No | The folder to search in (default: INBOX) | |
| offset | No | Number of messages to skip from the newest (for pagination, default: 0) | |
| subject | No | Filter by subject | |
| keywords | No | Filter by keywords in body | |
| accountId | Yes | The ID of the account to use |