regex_test
Test a regex pattern against provided text to find matches.
Instructions
Test a regex pattern against text
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>"
},
"name": "regex_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to test against the pattern | |
| pattern | Yes | The regex pattern to test | |
| flags | No | Regex flags (e.g., 'g', 'i', 'gi') | g |