Read scanned pages with optional OCR
Inspect native text, queue the visual work that is needed, save completed pages and page locations, then verify the resulting revision by preview/search. The worker can resume queued work after the reader closes. Cancellation retains completed work.
When it runs
Section titled “When it runs”Explicit reader/MCP request for an eligible PDF/image attachment.
What you can change
Section titled “What you can change”Eligible file, OCR prompt/model, start/cancel and later reindex. Paid OCR requires both library and AI permission.
From an MCP client
Section titled “From an MCP client”preview_attachment, start_attachment_ocr, cancel_attachment_ocr, list_library_records, search. See the tool reference for arguments and permissions.
Try it
Section titled “Try it”Compare native preview with OCR on a two-page test scan.
Source files api/src/lib/attachmentOcr.ts, api/src/lib/attachmentOcrInput.ts, api/src/lib/attachmentPreview.ts.