classify_input
Check if user input is safe and on-topic before AI processing. Blocks prompt injection, jailbreaks, and off-topic requests to protect LLM actions.
Instructions
Check whether user input is safe and in-scope before an AI system processes it. Detects prompt injection, jailbreak attempts, instruction overrides, and off-topic requests. Use this to validate untrusted user text before passing it to an LLM or executing a tool.
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": "classify_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The untrusted user input to classify | |
| preset | No | Which guard domain to use. Default: general knowledge assistant |