List Emails
email_listLists recent emails from a specified mailbox folder, returning subject, sender, date, size, and attachment info. Supports caching for performance.
Instructions
📖 List emails from a mailbox folder (read-only, safe for unsupervised use)
Returns recent emails with subject, sender, date, size, and attachment info.
Caching: Results are cached for 2 minutes (fresh) / 10 minutes (stale). Use force_refresh=True to bypass cache and fetch fresh data.
Args: account_id: Microsoft account ID folder: Folder name (inbox, sent, drafts, deleted, junk, archive) folder_id: Direct folder ID - takes precedence over folder name limit: Maximum emails to return (1-200, default: 10) include_body: Whether to include email body content (default: True) use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)
Returns: List of email messages with metadata and optionally body content. Each message includes _cache_status and _cached_at fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| folder | No | ||
| folder_id | No | ||
| limit | No | ||
| include_body | No | ||
| use_cache | No | ||
| force_refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |