Snapshot an environment
cs_snapshot_environmentCapture a Copilot Studio environment into a folder for version comparison or history, including agents, flows, connection references, variables, and publish state. Read-only.
Instructions
Capture one environment into a folder for comparison or history: solution version, every agent cloned with pac copilot clone (agents/), and, when signed in, flows, connection references, environment variables and publish state. Read-only for the environment.
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": {
"label": "<label>",
"environment": "<environment>",
"dir": "<dir>"
},
"name": "cs_snapshot_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Snapshot folder (recreated) | |
| label | Yes | Short name such as DEV, TEST, ACC, PROD | |
| agents | No | Agent schema names or ids to clone; default: every agent pac copilot list returns | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| solution | No | Solution unique name to record version/managed state for | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| maxAgents | No | Default 20 | |
| environment | Yes | Environment id or URL | |
| includeDataverse | No | Default true: flows, connection references, environment variables and publish state via Dataverse (needs cs_login; skipped silently otherwise) |