tinplate_regex_safety
Regex ReDoS Vulnerability Scanner & Pattern Explainer API: Audit regular expressions for O(2^n) ReDoS backtracking, explain patterns, and test matches. (Endpoint: POST /v1/regex-safety)
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>"
},
"name": "tinplate_regex_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | Optional ECMAScript RegExp flags (e.g. 'i', 'g', 'm', 's', 'u', 'v'). | |
| pattern | Yes | Regular expression pattern string (without surrounding /.../ slashes, or in /pattern/flags literal format). | |
| test_strings | No | Optional sample strings (max 512 chars each) to test against the pattern when safe to execute. |