batch_edit
Batch multiple document edits (replace text, insert paragraphs) in a single call. Validates steps to reject conflicts before applying them.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the DOCX or ODT file. | |
| steps | No | JSON array of edit steps. Each step needs step_id, operation, and operation-specific fields. | |
| plan_file_path | No | Path to a .json file containing an array of edit steps. Mutually exclusive with steps. |