replace_text
Replaces all occurrences of a specified text string in an open HWP document with new text, returning the number of replacements made.
Instructions
Replace all occurrences of text in the document.
Args: doc_id: Document ID from open_document old_text: Text to find new_text: Replacement text
Returns: Number of replacements made
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| new_text | Yes | ||
| old_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||