outlook_search_emails
Search Outlook emails across all folders using filters like sender, subject, date, and query. Include bodies for analysis when needed.
Instructions
Search emails across all folders with advanced filters for analysis
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter emails from specific sender | |
| limit | No | Maximum number of emails to return. Default: 25. NOTE: If includeBody is true, this is strictly capped at 5 to prevent context overflow. | |
| query | No | Free-text search query across email content | |
| format | No | Format of the body content (default: text) | text |
| endDate | No | End date for email search (ISO 8601 format) | |
| folders | No | Specific folders to search in | |
| orderBy | No | Sort order (e.g., "receivedDateTime desc") | receivedDateTime desc |
| subject | No | Search emails with specific subject text | |
| truncate | No | Truncate long email bodies (default: true) | |
| maxLength | No | Maximum length for truncated body (default: 1000) | |
| startDate | No | Start date for email search (ISO 8601 format) | |
| includeBody | No | Include full email body content for analysis. WARNING: Setting this to true restricts the result limit to 5. |