preview_search_and_replace
Audit find-and-replace operations in HWP files by previewing entry counts and changes before applying edits.
Instructions
Preview a text replace as an edit session (entry/count audit) without writing output.
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": {
"path": "<path>",
"find": "<find>",
"replace": "<replace>"
},
"name": "preview_search_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | Yes | ||
| replace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |