tool_regex
Apply regular expression patterns to text for matching, testing, or replacing. Provide the text, pattern, flags, and optional replacement to receive matches and test results.
Instructions
[text] Regex
Parameters:
text (string): Text
pattern (string): Pattern
flags (string): Flags
replacement (string): Replacement
Outputs:
matches (json): Matches
test (string): Test
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tool_regex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | Test | |
| text | No | Text | |
| flags | No | Flags | |
| matches | No | Matches | |
| pattern | No | Pattern | |
| replacement | No | Replacement |