string_replace
Replace every occurrence of a specified old substring with a new value inside a given text string, enabling direct find-and-replace operations.
Instructions
Replace all occurrences of old with new in a string.
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": {
"text": "<text>",
"old": "<old>",
"new": "<new>"
},
"name": "string_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |