scan_prompt
Detect and anonymize PII in prompt text before sending to an LLM. Identifies emails, phone numbers, credit cards, and more, returning risk level and masked content.
Instructions
Scans text for PII (personally identifiable information) before sending to an LLM. Detects emails, phone numbers, credit cards, Aadhaar numbers, PAN cards, IP addresses, passports, and bank accounts. Returns risk level, findings, and anonymized text. Always run this before sending sensitive prompts to any LLM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to handle detected PII: MASK partially hides values, REDACT removes them entirely, REPLACE substitutes typed tokens like [EMAIL] | MASK |
| text | Yes | The prompt text to scan for PII |