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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"search_text": "<search_text>",
"replace_text": "<replace_text>"
},
"name": "search_and_replace"
}
}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 |