List Items
m365_listList emails, events, contacts, or OneDrive files in Microsoft 365 when you know where to look. Returns compact items plus a cursor for more.
Instructions
Browse items of one type in a known place: emails in a mail folder, events in a time window, calendars, contacts, contact folders, mail folders, inbox rules, or files in a OneDrive folder (optionally as a tree). Use this when you know where to look. Use m365_search to find items by text, and m365_get when you already have an ID. Returns compact items plus next_cursor for more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | event only: window end (default start + 7 days; at most 366 days after start). | |
| path | No | drive_item only: OneDrive folder path instead of container_id, e.g. /Documents/Tax. | |
| limit | No | Maximum number of items to return. | |
| start | No | event only: window start (default now). RFC 3339 with offset. | |
| cursor | No | next_cursor from the previous page; keep all other arguments the same. | |
| refresh | No | Bypass the cache and fetch fresh data. | |
| resource | Yes | Type of item to list. | |
| item_type | No | drive_item only: which kinds of item to return. | all |
| max_depth | No | Tree depth when recursive=true. | |
| recursive | No | email_folder and drive_item only: return a nested tree of folders instead of one level. | |
| account_id | No | Account ID or email address. Omit when only one account is signed in. | |
| container_id | No | Where to list. email: mail folder ID or alias (default inbox). email_folder: parent folder (default: top level). event: calendar ID (default: your default calendar). contact: contact folder ID (default: all contacts). drive_item: parent folder ID (default: OneDrive root). Not used for calendar, contact_folder and email_rule. | |
| email_filter | No | email only: filters applied by Microsoft 365 (all must match). | |
| include_hidden | No | email_folder only: include hidden folders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| summary | Yes | One-line human summary. The tool's text content is this result serialized as JSON (summary included), so a client that ignores structuredContent still sees every field. | |
| has_more | Yes | ||
| resource | Yes | ||
| next_cursor | Yes |