Screen for Prompt Injection
security.screenScreen text for prompt injection and jailbreak attacks before sending it to an LLM. Detects 10 attack categories and redacts flagged snippets to protect AI applications from malicious inputs.
Instructions
Screen text for prompt injection and jailbreak attacks before passing it to an LLM. Detects 10 attack categories. Costs $0.03 USDC on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to screen for prompt injection (max 50,000 chars) | |
| source | No | Origin of the text (user_input, email, form, etc.) | |
| _payment | No | Base64-encoded signed v2 PaymentPayload (the value you'd put in the PAYMENT-SIGNATURE HTTP header). Use @x402/evm or @x402/fetch to sign locally with your own wallet — your private key never leaves your machine. Get the requirements from a first call without _payment, then retry. | |
| redacted | No | Redact flagged snippets in the response | |
| sensitivity | No | Detection sensitivity | medium |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message when the call failed. | |
| result | No | Raw JSON payload returned by the x402 service on a successful, paid call. | |
| network | No | Settlement network for the x402 payment (base). | |
| service | No | Underlying x402tools service that handled the call. | |
| price_usdc | No | Price charged for this call, in USDC on Base. | |
| requirements | No | x402 payment requirements (scheme, network, amount, payTo, asset) when payment_required is true. | |
| payment_required | No | True when the call needs an x402 payment before it will run. |