regex
Run a JavaScript regular expression on text: lists matches with positions and groups, or replaces when replace is given.
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>",
"text": "<text>"
},
"name": "regex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| flags | No | Default g. Also i, m, s, u | |
| pattern | Yes | ||
| replace | No | Replacement ($1, $<name> work) |