flatten_document
Accepts all tracked changes and removes revision markup in Word documents, returning counts of accepted changes and removed formatting changes.
Instructions
Accept all tracked changes and remove all revision markup.
Accepts every w:ins / w:del and strips all w:rPrChange and w:pPrChange elements, leaving plain text with no tracked-change metadata.
Returns: {"changes_accepted": int, "formatting_changes_removed": int}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |