db_sync
Dry-run or execute a preflight-checked Dataverse database synchronization from Visual Studio, requiring confirmed target or environment and policy approval for real runs.
Instructions
Dry-run or run a full database synchronization through Visual Studio. Always runs preflight checks. A local runtime syncs only databaseSync.target (confirmDatabase must equal its database name). A CloudRuntime environment syncs only databaseSync.finOpsUri, which must be the environment Visual Studio is connected to (confirmEnvironment must equal its host); it needs databaseSync.allowCloudRuntime and a connection confirmed this session, and never opens a connection wizard. A real run also needs policies.allowDatabaseSynchronization and dryRun=false. The online sync reports no result of its own, so the extension watches the Power Platform output for the Dataverse async operation status (30 succeeded, 31 failed, 32 canceled); success is null if none appears before timeoutMs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "db_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| timeoutMs | No | ||
| confirmDatabase | No | ||
| confirmEnvironment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mode | No | ||
| error | No | ||
| ready | No | ||
| checks | No | ||
| dryRun | No | ||
| output | No | ||
| target | No | ||
| logsUrl | No | ||
| success | No | ||
| auditLog | No | ||
| completion | No | ||
| durationMs | No | ||
| errorCount | No | ||
| logArchive | No | ||
| environment | No | ||
| warningCount | No | ||
| outputTruncated | No | ||
| runtimeHostType | No |