document_scanner__scan_document
Scan PDFs, images, and text files for PII and credentials before sending them to an LLM. Extract text with OCR for screenshots and scanned pages.
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"] |