Download the Teams / Microsoft 365 app package
cs_download_channel_manifestDownload the Microsoft 365/Teams app package ZIP (manifest.json plus icons) for an agent already published to that channel, for sideloading or Teams admin centre.
Instructions
Answer 'give me the Teams app package for this agent': download the channel manifest zip (manifest.json plus icons) for an agent published to the Microsoft 365 and Teams channel, the same file the portal offers as 'Download .zip', for sideloading or the Teams admin centre. Writes only the zip file; nothing in the environment changes. The agent must already be published to that channel. Follows the published Power Platform API reference; not yet verified against a live tenant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| botId | No | Agent (bot) id. Defaults to workspace sync metadata or CPS_AGENT_ID. | |
| channel | No | Channel name; M365 is the only one the API supports today | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| outputPath | No | Where to write the zip. Default: beside the workspace, else the temp folder | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. | |
| includeAgentSchema | No | Also put the agent schema in the package |