Teams List Chats
teams_list_chatsLists the Microsoft Teams chats of a Microsoft 365 account — direct messages, group chats and meeting chats — most recently active first, read from Microsoft 365. Each chat has its id (for teams_read_chat_messages), a title, the other participants, its type (oneOnOne, group or meeting) and its last message. participants names every other member; one whose name could not be read shows as "unnamed member" (or "unnamed member (external)"), never as nothing. participants_state says how far to trust it: resolved, unresolved (at least one unnamed), only_you (nobody else in the chat) or unknown (the member list could not be read: participant_count and has_external_members are then absent). Reads at most 20 pages of 50 chats. When the read is cut (by that bound, or because the call ran out of time) the answer has truncated: true. Needs a work or school Microsoft 365 account connected with connect_m365_account (personal Microsoft accounts have no Teams reads). When no Microsoft 365 account is connected at all, it reads the Teams app's local cache on this Mac instead (needs Full Disk Access, can be hours or days behind); the answer's source says which one answered (graph or local_cache).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items to return (default 50) | |
| account | No | Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| chats | No | ||
| count | No | ||
| error | No | ||
| source | No | Which source answered: graph (Microsoft 365) or local_cache (the Teams app's cache on this Mac, used only when no Microsoft 365 account is connected). | |
| account | No | The email (UPN) of the Microsoft 365 account this call used. | |
| fix_tool | No | ||
| truncated | No | Present and true only when the read was cut before it had everything it was asked for. |