batch_apply
Apply a sequence of edits to multiple Word documents at once, with per-file validation and rollback on failure. Update footers, styles, or watermarks across many files in a single operation.
Instructions
Apply the same operations to MANY documents in one call (e.g. update a footer across 50 templates). operations: [{'tool': name, 'params': {...}}] with each tool's normal parameters minus file_path. Allowed tools: search_and_replace, insert_paragraphs, delete_paragraphs, replace_paragraph_text, format_text, set_paragraph_format, apply_style, set_header, set_footer, add_page_numbers, set_page_number_format, set_document_properties, set_cells, add_watermark, remove_watermark. Per file: all operations run, then one prev/anchor slot rotation and one atomic validated save; a failing operation leaves that file untouched, and stop_on_error=True skips remaining files (already-saved files keep their changes). Refuses files open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_paths | Yes | ||
| operations | Yes | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||