Compare a failed flow run with one that worked
cs_compare_flow_runsDiff a failed flow run against a successful baseline to separate data problems from logic problems and reveal the actions where the two runs diverge.
Instructions
Diff a failed run against a successful one to separate a data problem from a logic problem. Names the action where the two runs part company, lists every action whose status differs, and flags actions present in one run but not the other, which means the definition changed between them. With compareTriggerData it also reports which top-level keys of the trigger payload differ (key names only, never the values). The baseline defaults to the most recent successful run. Read-only. Uses the Power Automate service (cs_login scope 'flow'). Unverified against a live tenant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | The failed run (cs_list_flow_runs) | |
| flowId | Yes | Flow id (cs_list_flows) | |
| 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. | |
| searchRuns | No | How far back to look for a successful baseline; default 50 | |
| baselineRunId | No | Run to compare against; default the most recent successful one | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. | |
| compareTriggerData | No | Also compare what the trigger handed each run |