test_pattern
Test if a regex pattern matches text.
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>",
"text": "<text>"
},
"name": "test_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to test against | |
| flags | No | Flags: i=ignore case, m=multiline, s=dotall | |
| pattern | Yes | Regular expression pattern |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| error | No | ||
| matches | No | ||
| pattern | Yes | ||
| match_end | No | ||
| match_start | No | ||
| matched_text | No | ||
| valid_pattern | No |