regex_debug
Debug regular expressions by testing them against input text, with visual markers and hints for unmatched patterns.
Instructions
Debug a regex pattern against input text. Shows match positions, visual markers, context, and hints when no match is found.
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_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern | |
| input | Yes | Text to debug against | |
| flags | No | Regex flags. Default: g (global) |