analyze_prompt
Analyze prompts, agent messages, and untrusted text for prompt injection, jailbreak, credential exfiltration, and role hijacking. Returns a threat assessment, confidence score, and matched rule.
Instructions
Analyze text, prompt, or agent messages for security threats (prompt injection, jailbreak, credential exfiltration, role hijacking). Runs locally; only if the user set ZN_CLOUD=1 and ZN_API_KEY is the text, with secrets redacted, also sent to the zn cloud gate. Returns threat assessment, confidence score, and matched rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The user input, system prompt, or external message to inspect. |