Transaction Commit
transaction-commitWrites active transaction changes to source files after validating the expected snapshot, ending the transaction; preview changes first and use rollback to discard them. Does not create a Git commit.
Instructions
Writes the active transaction changes to source files. Inspect transaction-preview first; use transaction-rollback to discard changes instead. Supply the current expectedSnapshot. Transactional mode requests client-mediated confirmation unless already approved for this Host session; autonomous-trusted mode does not prompt. A completed write ends the transaction; check committed and the returned transaction state, because an empty revision returns NoChange and leaves the transaction active. Keep commit-owned paths free of concurrent edits during file application. This does not create a Git commit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | No | Provide workspaceId, alias, path, or any combination. | |
| expectedSnapshot | Yes | Echo the snapshot returned with the data or transaction state used to construct this request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||