imap_search_all_mailboxes
Search every mailbox of an account in one call (e.g. a whole conversation via thread_message_id); results are newest first and labelled with their mailbox
Instructions
Search every mailbox of an account in one call (e.g. a whole conversation via thread_message_id); results are newest first and labelled with their mailbox
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Filter by To header | |
| from | No | Filter by From header | |
| limit | No | Maximum messages to return, newest first across all mailboxes (1..200, default 50) | |
| query | No | Full-text search query | |
| subject | No | Filter by Subject header | |
| end_date | No | Filter to messages before this date (YYYY-MM-DD) | |
| last_days | No | Filter to messages from last N days | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
| start_date | No | Filter to messages on or after this date (YYYY-MM-DD) | |
| unread_only | No | Filter to unread messages only | |
| include_snippet | No | Include subject snippet in results | |
| exclude_mailboxes | No | Skip these mailboxes and their sub-mailboxes (exact names, e.g. `Junk`) | |
| include_mailboxes | No | Only search these mailboxes and their sub-mailboxes (exact names) | |
| snippet_max_chars | No | Maximum snippet length (50..500, requires `include_snippet=true`) | |
| thread_message_id | No | Find a conversation by its RFC 5322 Message-ID (angle brackets optional): the message itself and every reply that references it, in any mailbox |
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 |