Compare two snapshots
cs_compare_snapshotsCompare two Copilot Studio snapshot folders offline to detect solution, agent YAML, flow, connection, environment, and unpublished changes, writing Markdown/JSON reports for pipeline drift gates.
Instructions
Offline diff of two snapshot folders: solution version, per-agent YAML differences (noise such as ids, audit info and connection ids removed), flows, connection references, environment variables, unpublished changes. Writes /-vs-.md and .json. failOnDrift returns an error result when drift is found (for pipeline gates).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "<a>",
"b": "<b>"
},
"name": "cs_compare_snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Snapshot folder (earlier stage, e.g. DEV) | |
| b | Yes | Snapshot folder (later stage, e.g. TEST) | |
| reportDir | No | Default: parent of b | |
| failOnDrift | No | ||
| ignoredKeys | No | ||
| includeDiffs | No | Default true: unified diffs in the report | |
| strictVariables | No | Treat differing environment variable values as drift |