Teams List Teams
teams_list_teamsLists the Microsoft Teams teams the Microsoft 365 account belongs to, by name. Start here for channels: the team id feeds teams_list_channels and teams_read_channel_messages. (For direct and group chats use teams_list_chats.) Reads at most 20 pages of teams. 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 |
|---|---|---|---|
| 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 | ||
| count | No | ||
| error | No | ||
| teams | 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. |