search_messages
Locate emails across any folder by passing keyword, phrase, or KQL field queries directly to Microsoft Graph search.
Instructions
Search messages across all folders using Graph $search.
The query is passed to Graph as-is — supply quoting yourself if you need a literal phrase (e.g. '"weekly report"') or KQL fielded predicates (e.g. 'from:alice subject:"report"').
Graph does not allow combining $search with $filter or $orderby, and KQL
has no isread/unread/flag/in predicates. To filter by isRead /
sender / date / attachments while keyword-matching, use list_messages
with filter="contains(subject,'…')" (or contains(body/content,'…'))
instead — that path supports the full $filter grammar.
Args:
query: Graph $search expression. Plain tokens match across common
mail fields; quoted phrases match literally; KQL field:value
forms target specific fields.
mailbox: Optional mailbox.
limit: 1-100.
page_token: Continuation token.
include_raw: Include raw payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| mailbox | No | ||
| page_token | No | ||
| include_raw | No |