regex_split
Split text by a regex pattern, with optional flags like case-insensitive. Returns array of substrings.
Instructions
Split text using a regex pattern
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": {
"text": "<text>",
"pattern": "<pattern>"
},
"name": "regex_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to split | |
| pattern | Yes | The regex pattern to split by | |
| flags | No | Regex flags (e.g., 'i') |