Apply edits
apply_editsAtomically apply a batch of edits to an Office document: either all succeed and are journaled, or none apply. Tracked mode shows revisions; direct mode rewrites text and logs to the ledger.
Instructions
Apply a batch of edits to the document and record each one in the session's journal. ALL-OR-NOTHING: the document is written only if every edit applied, so a failed batch leaves the file byte-identical and journals nothing. mode 'tracked' emits Word revision marks a reviewer can see; 'direct' rewrites the text and is recorded in the ledger alone, which the receipt discloses. Seal the session with commit_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | tracked | |
| edits | Yes | ||
| author | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | Yes | ||
| applied | Yes | ||
| outcomes | Yes | ||
| session_id | Yes | ||
| revision_ids | Yes | ||
| result_digest | Yes | ||
| baseline_digest | Yes | ||
| document_digest_changed | Yes |