reject_change
Rejects a tracked change in a Word document, removing inserted text or restoring deleted text. Specify the change ID and file path.
Instructions
Reject a tracked change (undo the change).
For insertions: The inserted text is removed. For deletions: The deleted text is restored.
Args: path: Path to the .docx file change_id: ID of the track change to reject output_path: Save to new file; if omitted, creates timestamped backup and overwrites original
Returns: Dictionary containing: - success: True if successful - change_id: ID of the rejected change - change_type: "insertion" or "deletion" - output_path: Path where the file was saved
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| change_id | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||