create_track_change
Locates unique text in a .docx file and applies a tracked change: insertion, deletion, or replacement, with configurable author.
Instructions
Make an edit with track changes enabled (insertion, deletion, or replacement).
Args: path: Path to the .docx file find_text: Text to find and modify (must exist and be unique) replace_with: Replacement text (use empty string for deletion-only) author: Change author name (default: "Claude") output_path: Save to new file; if omitted, creates timestamped backup and overwrites original
Returns: Dictionary containing: - success: True if successful - change_type: "replacement", "deletion", or "insertion" - original_text: The text that was changed - new_text: The replacement text - paragraph: Index of the paragraph containing the change - output_path: Path where the file was saved
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| author | No | Claude | |
| find_text | Yes | ||
| output_path | No | ||
| replace_with | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||