regex_replace
Replace text matching a regular expression pattern with a specified replacement string. Supports flags for case-insensitive, multiline, and dotall matching.
Instructions
Replace text matching a regular expression.
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 | Text to process | |
| pattern | Yes | Regular expression pattern to match | |
| replacement | Yes | Replacement string | |
| flags | No | Regex flags (i=ignorecase, m=multiline, s=dotall) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |