accept_ai_edits
Accept specific tracked changes in DOCX files by revision ID or author, preserving other edits. Handles nested revisions with error or normalization.
Instructions
Selectively accept tracked changes by revision id or author, leaving all other (e.g. third-party reviewer) revisions byte-untouched. 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. |