regex_replace
regex_replaceReplace text in strings using regular expression patterns to find and substitute specific content with custom replacements.
Instructions
Replace text using a regex pattern
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>",
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "regex_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| pattern | Yes | ||
| replacement | Yes | ||
| flags | No |