regex_test
Test a regular expression against input text and return matches with capture groups.
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>",
"input": "<input>"
},
"name": "regex_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Flags, e.g. 'gi'. | |
| input | Yes | ||
| pattern | Yes | Regex source, no surrounding slashes. | |
| replacement | No | Optional replacement for String.replace. |