Restore Simulation Snapshot
restore_simulation_snapshotPut the simulation workspace this credential is connected to back exactly as a snapshot holds it, simulated clock included (governed two-step, destructive). Everything done since — rehearsed or imported — is replaced, and unfinished scenario runs are stopped. Never touches QuickBooks. Requires a credential granted the sandbox.reset capability. Call with preview=true first to see what it replaces and get a previewReceipt, confirm with the user, then repeat with the previewReceipt and a fresh idempotencyKey. Committing needs Spark's OAuth connector: in Sparki the preview works but the commit is refused, so restore from the simulated books page instead.
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": {
"snapshotId": "<snapshotId>"
},
"name": "restore_simulation_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Step 1 of the required two-step write: set true to receive what the restore replaces plus a single-use previewReceipt. Nothing changes until the commit. | |
| snapshotId | Yes | The snapshot's id, from list_simulation_snapshots (the baseline's id works too). | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2: the receipt returned by the preview call, with a fresh idempotencyKey. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| status | No | ||
| message | No | ||
| preview | No | ||
| restored | No | ||
| snapshot | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| workspaceName | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| clockPinnedAtUtc | No | ||
| idempotentReplay | No |