document_scanner__scan_base64
Scan base64-encoded documents, images, or attachments to detect PII and credentials. Automatically identifies file type from bytes and supports optional OCR for images and PDFs.
Instructions
Scan a document given as base64 (an attachment, an image a tool returned) for PII and credentials. The type is detected from the bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | OCR images and PDF pages without a text layer (default true; needs tesseract.js) | |
| data | Yes | Base64 bytes (a data: URL prefix is allowed) | |
| label | No | ||
| include | No | Opt-in detectors: ip_address, mac_address, plate_tr | |
| languages | No | Tesseract languages, default ["tur", "eng"] |