docxredline

v0.1.0
io.github.CloudCorpRecords/docxredline Checked 18 hours ago Published 1 month ago

Read, redline, and finalize .docx files with native Word tracked changes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_docx

Read a .docx file as clean Markdown-like text (CriticMarkup view of existing tracked changes), optionally filtered.

ParameterTypeDescription
path *stringPath to the .docx file.
clean_viewbooleanRead the final clean version (accept all tracked changes).
pagenumberSynthetic page number to return (paragraphs are grouped into pages).
search_querystringOnly return paragraphs containing this text.

process_document_batch

Apply a batch of edits to a .docx as native Word tracked changes (redlines), or accept/reject/reply to existing tracked changes and comments by ID.

ParameterTypeDescription
changes *arrayThe list of changes to apply atomically.
path *string
authorstringAuthor name recorded on the tracked changes.
output_pathstringWhere to write the edited .docx. Defaults to <name>.redlined.docx beside the input.

finalize_document

Pre-send scrub: strip author metadata and internal tracking IDs from a .docx, optionally lock it, and prepare it for distribution.

ParameterTypeDescription
path *string
output_pathstring
protection_modestringe.g. read_only to lock the document.