escape_pattern
Escape special regex characters in 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": {
"text": "<text>"
},
"name": "escape_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to escape for use in regex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| escaped | Yes | ||
| original | Yes | ||
| special_chars_escaped | Yes |