regex_split
Split text by 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": {
"pattern": "<pattern>",
"text": "<text>"
},
"name": "regex_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to split | |
| pattern | Yes | Regular expression pattern to split on | |
| max_split | No | Maximum splits (0=unlimited) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| count | No | ||
| error | No | ||
| parts | No | ||
| pattern | Yes | ||
| valid_pattern | No |