regex_validate
Validate a regular expression pattern and its flags, returning whether the syntax is correct and a description of the flags.
Instructions
Check if a regex pattern is syntactically valid and describe the flags used.
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": "regex_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Regular expression pattern to validate | |
| flags | No | Regex flags to validate |