Run an evaluation
cs_run_evaluationStart a test-set evaluation run for a Copilot Studio agent, optionally waiting for the completion summary.
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. 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 | User profile connection id for authenticated knowledge/tools | |
| runOnPublishedBot | No |