document_scanner__scan_document
Scans PDFs, images, and text files for PII and credentials before they are sent to an LLM, using OCR for scanned pages and screenshots.
Instructions
Find PII (TC Kimlik No, IBAN, card, passport, e-mail, phone, address…) and credentials inside a PDF, an image (screenshot, scanned page) or a text file on disk, before it is given to an LLM. PDFs are read from their text layer; images and scanned pages with OCR (Turkish and English).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | OCR images and PDF pages without a text layer (default true; needs tesseract.js) | |
| path | Yes | Path to a file, or a folder to scan every PDF and image in it | |
| include | No | Opt-in detectors: ip_address, mac_address, plate_tr | |
| languages | No | Tesseract languages, default ["tur", "eng"] |