Search Emails
search_emailsFind emails in a selected mailbox or all non-trash folders by query, sender, subject, unread status, or ISO date range; optionally scan recent message bodies for broader matches.
Instructions
Search emails in a mailbox (or "all" non-trash mailboxes) by query, sender, subject, unread status, or ISO date range. Matches subject/sender fast; set include_body=true to also scan up to 150 recent bodies.
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 |
|---|---|---|---|
| limit | No | Maximum results to return (1-100). | |
| query | No | Case-insensitive substring to match in subject/sender (and body if include_body=true). | |
| since | No | ISO date/timestamp lower bound (inclusive), e.g. 2026-11-01. | |
| until | No | ISO date/timestamp upper bound (inclusive), e.g. 2026-12-05. | |
| sender | No | Filter by sender name or email substring. | |
| mailbox | No | Mailbox name (e.g. Inbox, Sent Items, Archive) or "all" for all non-trash folders. | Inbox |
| subject | No | Filter by subject substring. | |
| unread_only | No | Only return unread messages. | |
| include_body | No | If true, also search message bodies (scans up to 150 most recent candidates). |