Search (ChatGPT-compatible)
searchQuery all linked mailboxes at once to locate email messages and receive their IDs for full retrieval.
Instructions
Searches all readable mailboxes with one query string and returns documents with ids for fetch. Use Gmail search syntax for Gmail accounts (from:, newer_than:7d, has:attachment); plain words elsewhere. Prefix the query with "account: " to limit it to one mailbox. Outlook / Microsoft 365 mailboxes are searched in the Inbox only (Graph has no "all mail" scope), while Gmail is searched across All Mail; use search_messages with a folder to look elsewhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query |