batch_edit
Apply multiple document edits (replace text, insert paragraphs) with validation and conflict detection. All changes produce tracked changes.
Instructions
Single-agent front door for applying multiple edit steps (replace_text, insert_paragraph) to a document in one call. Validates all steps first, rejects conflicts before applying anything, then executes valid steps sequentially. Accepts inline steps or a plan_file_path JSON array. Surface: revisionable — every applied step emits native OOXML tracked changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | JSON array of edit steps. Each step needs step_id, operation, and operation-specific fields. | |
| file_path | Yes | Path to the DOCX or ODT file. | |
| plan_file_path | No | Path to a .json file containing an array of edit steps. Mutually exclusive with steps. |