batch_replace
Replace multiple strings in a document at once by defining a dictionary of old to new text replacements.
Instructions
Replace multiple strings in the document at once.
Args: replacements: Dictionary of old -> new text replacements Example: {"old1": "new1", "old2": "new2"}
Returns: Success message with replacement count or error message
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": {
"replacements": "<replacements>"
},
"name": "batch_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replacements | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |