accept_ai_edits
Accept tracked changes by revision ID or author in a DOCX/ODT session, leaving other revisions untouched. Call save to persist changes.
Instructions
Selectively accept tracked changes by revision id or author in the in-memory session, leaving all other (e.g. third-party reviewer) revisions byte-untouched. This does not write file_path; call save to persist the mutation. Provide revision_ids (array of w:id values) to target specific revisions, or author to accept every revision by one actor. Sweeps document.xml and supported side-story parts (footnotes, endnotes, comments). An ambiguous overlap — a targeted revision structurally containing, or contained by, a non-targeted revision (nested ins/del/move) — hard-errors with code AMBIGUOUS_REVISION_OVERLAP and a structured overlaps list unless normalize_first is set (best-effort, no byte-identical promise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| author | No | Accept every revision authored by this w:author. Convenience alternative to revision_ids. | |
| file_path | Yes | Path to the DOCX or ODT file. | |
| revision_ids | No | w:id values of the revisions to accept. Mutually preferred over author. | |
| normalize_first | No | Attempt best-effort resolution on an ambiguous (overlapping) revision graph instead of hard-erroring. No byte-identical guarantee. Default: false. |