Run an evaluation
cs_run_evaluationStart an evaluation run for a Copilot Studio test set, target the draft or published agent, and optionally wait for the summary. Requires confirm to execute.
Instructions
Start an evaluation run for a test set (draft agent by default, or the published one). Optionally wait for completion and return the summary. mcsConnectionId runs it signed in as a user profile (the id of that user's Copilot Studio connection) so authenticated knowledge and tools answer; toolsConnections picks the connection each connector tool uses. Counts against the 20 runs per agent per 24h limit: requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| botId | No | Agent (bot) id. Defaults to workspace sync metadata or CPS_AGENT_ID. | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| runName | No | ||
| 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. | |
| testSetId | Yes | ||
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. | |
| timeoutSeconds | No | ||
| mcsConnectionId | No | Copilot Studio connection id of the user profile to run as; omit for an anonymous run. Power Automate > Connections > Microsoft Copilot Studio, the GUID in the URL | |
| toolsConnections | No | Which connection each connector tool should use during the run | |
| runOnPublishedBot | No |