edit_header_footer
Replace specified text in a document's header or footer, with optional tracked changes for review.
Instructions
Edit text in a header or footer.
By default (tracked=True) the change is recorded as a deletion of the old text and an insertion of the new text — the human reviewer accepts/rejects in Word. Pass tracked=False to replace the text directly with no revision markup.
Args: location: "header" or "footer" (matches the first found of that type). old_text: Text to find and replace. new_text: Replacement text. author: Author name shown in Word's review pane (tracked=True only). tracked: True (default) = tracked del+ins. False = direct replacement, no markup. document_handle: Optional handle for concurrent session isolation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | ||
| old_text | Yes | ||
| new_text | Yes | ||
| author | No | Claude | |
| tracked | No | ||
| document_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |