KosmoKrator

other

Microsoft Teams CLI for Coding Agents

Use the Microsoft Teams CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

8 functions 7 read 1 write Manual OAuth token auth

Microsoft Teams CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Microsoft Teams CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Microsoft Teams CLI for Coding Agents
kosmokrator integrations:configure microsoft-teams --set access_token="$MICROSOFT_TEAMS_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call microsoft-teams.microsoft_teams_list_teams '{}' --json

Discovery Before Execution

Agents and scripts can inspect Microsoft Teams docs and schemas before choosing a function.

kosmo integrations:docs microsoft-teams --json
kosmo integrations:docs microsoft-teams.microsoft_teams_list_teams --json
kosmo integrations:schema microsoft-teams.microsoft_teams_list_teams --json
kosmo integrations:search "Microsoft Teams" --json
kosmo integrations:list --json

Useful Microsoft Teams CLI Functions

FunctionTypeParametersDescription
microsoft-teams.microsoft_teams_list_teams Read none List all Microsoft Teams teams the authenticated user has joined. Returns team IDs, names, and descriptions.
microsoft-teams.microsoft_teams_get_team Read team_id Get details for a specific Microsoft Teams team by its ID. Returns the team name, description, and other properties.
microsoft-teams.microsoft_teams_list_channels Read team_id List all channels in a Microsoft Teams team. Returns channel IDs, names, and descriptions.
microsoft-teams.microsoft_teams_get_channel Read team_id, channel_id Get details for a specific Microsoft Teams channel by its team and channel ID.
microsoft-teams.microsoft_teams_list_messages Read team_id, channel_id, limit List recent messages in a Microsoft Teams channel. Returns message content, sender info, and timestamps.
microsoft-teams.microsoft_teams_send_message Write team_id, channel_id, content, content_type Send a message to a Microsoft Teams channel. Supports plain text and HTML content.
microsoft-teams.microsoft_teams_list_chats Read limit List chats for the authenticated Microsoft Teams user. Returns chat IDs, topics, and types (one-to-one, group, or meeting).
microsoft-teams.microsoft_teams_get_current_user Read none Get the profile of the currently authenticated Microsoft Teams user. Returns display name, email, and job title.

Automation Notes

Related Microsoft Teams CLI Pages