regex
Test a pattern against input and get the actual matches, run under a 100ms budget in a separate thread. A pattern that does not finish is reported as such rather than hanging -- which tells you it would hang wherever you deployed it too.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Any of d g i m s u v y. | |
| input | Yes | The subject text. | |
| pattern | Yes |