edit_office_document
Edit existing Office documents by applying an ordered list of operations such as replace, delete, style, or add, with output to a new file or in-place.
Instructions
Modify an existing Office document by applying an ordered list of operations (replace, delete, modify, style, add, clear). Writes the result to output_path; when output_path is omitted the INPUT FILE IS OVERWRITTEN IN PLACE — set output_path or pass options {"backup": true} to keep a .bak copy. To generate a new document, use create_office_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options. | |
| input_path | Yes | Path to the existing document. | |
| operations | Yes | List of edit operations applied in order. | |
| output_path | No | Output path (defaults to the input file). |