regex_regex_validate
Check whether a regular expression pattern is valid. Returns true if valid, false otherwise, enabling error-free regex usage.
Instructions
[regex] Check if a pattern is a valid regular expression. Returns {valid: true/false}.
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_regex_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |