string_replace
Replace occurrences of a substring within text. Specify search string and replacement, with an option to replace all occurrences.
Instructions
Replace text
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>",
"search": "<search>",
"replace": "<replace>"
},
"name": "string_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to perform replacements on | |
| search | Yes | The string to search for | |
| replace | Yes | The string to replace with | |
| replace_all | No | Whether to replace all occurrences |