outlook_search_emails
Search emails across all folders with filters for subject, sender, date range, and more. Retrieve results with optional body content for detailed analysis.
Instructions
Search emails across all folders with advanced filters for analysis
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Free-text search query across email content | |
| subject | No | Search emails with specific subject text | |
| from | No | Filter emails from specific sender | |
| startDate | No | Start date for email search (ISO 8601 format) | |
| endDate | No | End date for email search (ISO 8601 format) | |
| folders | No | Specific folders to search in | |
| 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. | |
| includeBody | No | Include full email body content for analysis. WARNING: Setting this to true restricts the result limit to 5. | |
| truncate | No | Truncate long email bodies (default: true) | |
| maxLength | No | Maximum length for truncated body (default: 1000) | |
| format | No | Format of the body content (default: text) | text |
| orderBy | No | Sort order (e.g., "receivedDateTime desc") | receivedDateTime desc |