Detect portal changes since the last sync
cs_check_driftDetects direct changes made in Copilot Studio after the last clone, pull, or push. Identifies modified topics, tools, knowledge sources, settings, and conflicts—read-only.
Instructions
Find changes made directly in Copilot Studio after the workspace was last cloned, pulled or pushed. mode 'quick' (default) reads the agent's component rows from Dataverse and compares them with the sync stamp: which topics, tools and knowledge sources changed, by whom, when, whether the agent settings changed and whether there are unpublished changes; needs a cached cs_login, no pac. mode 'full' runs pac copilot clone into a temporary folder and classifies every file as local-modified, remote-modified or both (conflict) against the stamp, with unified diffs. Both are read-only. Resolve drift with cs_pull (three-way merge), then commit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | 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. | |
| keepClone | No | full: keep the temporary clone and return its path | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| includeDiffs | No | full: include unified diffs (default true) |