search_by_sender
Search for all emails from a given sender across one or all accounts. Supports partial match, date range, and content preview.
Instructions
Find all emails from a specific sender across one or all accounts. Perfect for tracking newsletters, contacts, or communications from specific people/organizations.
Args: sender: Sender name or email to search for (partial match, e.g., "alphasignal" or "john@") account: Optional account name. If None, searches all accounts. days_back: Only search emails from the last N days (default: 30, 0 = all time) max_results: Maximum number of emails to return (default: 20) include_content: Whether to include email content preview (default: True) max_content_length: Maximum length of content preview (default: 500) mailbox: Mailbox to search (default: "INBOX", use "All" for all mailboxes)
Returns: Formatted list of emails from the sender, sorted by date (newest first)
User Preferences: {"workflow": "default", "notifications": "enabled"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | ||
| account | No | ||
| mailbox | No | INBOX | |
| days_back | No | ||
| max_results | No | ||
| include_content | No | ||
| max_content_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |