sanitize_preview
Sanitizes input text by removing control characters and neutralizing prompt injections through Zod schema validation.
Instructions
Sanitizes any input text, removes control characters and neutralizes prompt injections using Zod schema validation.
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": "sanitize_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text to sanitize | |
| strict | No | If true, flags prompt injections with details |