generate_change_summary
Produce an email-ready change log by reading tracked modifications in a Word document, grouping adjacent deletions and insertions as replacement entries.
Instructions
Summarise tracked changes already present in the open document as an email-ready .txt.
Use this after making edits with tracked=True (the default) and saving, to produce a human-readable change log of what was modified. Reads the document's existing w:ins / w:del elements, groups adjacent deletion+insertion pairs as REPLACEMENT entries, and writes a numbered list with author, date, and text per change.
Typical workflow: open_document → edit with tracked=True → save_document → generate_change_summary
If you have two separate files to compare rather than an already-edited document, use diff_to_text instead.
Args: output_path: Destination .txt path. Auto-generated from the document stem if empty. document_handle: Optional handle for concurrent session isolation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | ||
| document_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |