batch_replace
Apply multiple find-and-replace pairs to a text file in a single pass, outputting results to a new file.
Instructions
Apply multiple find->replace pairs to a NEW file in one pass (text substitution only).
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>",
"replacements": "<replacements>",
"out_path": "<out_path>"
},
"name": "batch_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| out_path | Yes | ||
| replacements | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |