regex_replace
Replace pattern matches in 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": {
"pattern": "<pattern>",
"replacement": "<replacement>",
"text": "<text>"
},
"name": "regex_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to process | |
| flags | No | Flags: i=ignore case, m=multiline, s=dotall | |
| pattern | Yes | Regular expression pattern | |
| replacement | Yes | Replacement string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| result | No | ||
| pattern | Yes | ||
| original | No | ||
| replacement | No | ||
| valid_pattern | No | ||
| replacements_made | No |