test_cases
Verify a regex pattern against positive and negative test cases. Reports pass/fail and any false positives or negatives.
Instructions
Check pattern matches all positives and rejects all negatives (each in a killable subprocess). Returns pass plus any false positives/negatives.
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>",
"positives": "<positives>",
"negatives": "<negatives>"
},
"name": "test_cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | python | |
| pattern | Yes | ||
| negatives | Yes | ||
| positives | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||