search_and_replace
Find and replace text in Word documents while maintaining original formatting. Control case sensitivity for precise updates.
Instructions
在文档中搜索并替换文本(保持原有格式)。
Args: file_path: 文档路径 search_text: 要搜索的文本 replace_text: 替换为的文本 match_case: 是否区分大小写 (默认True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| match_case | No | ||
| search_text | Yes | ||
| replace_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |