KosmoKrator

communication

Microsoft Teams CLI for Headless Automation

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

7 functions 6 read 1 write Bearer token auth

Microsoft Teams CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. 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 Headless Automation
kosmokrator integrations:configure teams --set access_token="$TEAMS_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call teams.teams_list_teams '{"top":1,"skip":1}' --json

Discovery Before Execution

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

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

Useful Microsoft Teams CLI Functions

FunctionTypeParametersDescription
teams.teams_list_teams Read top, skip List all Microsoft Teams the user is a member of.
teams.teams_get_team Read team_id Get detailed information about a Microsoft Team.
teams.teams_list_channels Read team_id, top, skip List all channels in a Microsoft Team.
teams.teams_get_channel Read team_id, channel_id Get detailed information about a Microsoft Teams channel.
teams.teams_send_message Write team_id, channel_id, content, content_type Send a message to a Microsoft Teams channel.
teams.teams_list_messages Read team_id, channel_id, top, skip List messages in a Microsoft Teams channel.
teams.teams_get_current_user Read none Get information about the current authenticated Microsoft 365 user.

Automation Notes

Related Microsoft Teams CLI Pages