Detect ReDoS risk in a regular expression
appsec-config_regex-redos-checkCheck a JavaScript regex for catastrophic backtracking with recheck. Price $0.02 USDC. POST /api/v1/appsec-config/regex-redos-check. An unpaid call returns the x402 payment terms and does not run.
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": "appsec-config_regex-redos-check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | flags, string, length 0 to 16. Required. | |
| flavour | No | flavour, string, one of javascript. Required. | javascript |
| pattern | Yes | pattern, string, length 0 to 2000. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attack | No | attack. Object. | |
| engine | No | engine. String. | |
| status | No | status. String. | |
| checker | No | checker. String. | |
| sources | No | sources. Array. | |
| complexity | No | complexity. Object. | |
| limitations | No | limitations. Array. |