regex_replace
Replace regex matches in text (supports backreferences in replacement).
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 | ||
| count | No | Max replacements when global | |
| flags | No | i, m, s | |
| pattern | Yes | ||
| replacement | Yes | ||
| global_replace | No |