Skip to content

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.

Explicit reader/MCP request for an eligible PDF/image attachment.

Eligible file, OCR prompt/model, start/cancel and later reindex. Paid OCR requires both library and AI permission.

preview_attachment, start_attachment_ocr, cancel_attachment_ocr, list_library_records, search. See the tool reference for arguments and permissions.

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.