Transaction Preview
transaction-previewInspect staged transaction changes against the captured baseline before committing, returning state, changed documents, mutation provenance, and optional per-document diffs.
Instructions
Inspects the active transaction against its captured baseline before committing, returning transaction state, changed documents and mutation provenance. Available in mutation modes that do not require a review receipt; approval-required mode exposes transaction-review instead. includeDiff defaults to false; set it to true and supply document for a detailed diff of that document, with contextLines defaulting to 3 unchanged lines per hunk. The document selector controls the detailed diff, not the overall changed-document summary. This read-only preview does not authorise or persist changes. Inspect it, then use transaction-commit to write the staged changes or transaction-rollback to discard them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | Document whose detailed diff should be returned; provide it when includeDiff is true. | |
| workspace | No | Provide workspaceId, alias, path, or any combination. | |
| includeDiff | No | Whether to include a detailed diff. | |
| contextLines | No | Number of unchanged context lines around each diff hunk when includeDiff is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||