ews_search_messages
Search emails via Exchange Web Services across inbox, sent, drafts, deleted, or junk folders. Specify folder, limit, and offset to retrieve matching messages for Microsoft accounts.
Instructions
Search emails via Exchange Web Services. Preferred for Microsoft accounts. Supports inbox, sent, drafts, deleted, junk folders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum messages to return (1..50, default 10) | |
| folder | No | Folder name (inbox, sent, drafts, deleted, junk) | |
| offset | No | Offset for pagination (default 0) | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |