OCR tools for AI agents, on device

Text recognition runs on your Mac with Apple's Vision framework. Nothing is uploaded, and the reading is kept so the next question about the same document is instant.

Scans become text your agent can quote, page by page.

Page by page

Text comes back marked with its page, so an agent can point to where it read something.

A confidence figure

Each page carries the recogniser's confidence, from 0 to 1, so a weak reading is visible.

Page previews on request

The agent can ask for a page as a picture, inside the folders you allowed, to check a reading by eye.

Languages

Portuguese and English by default; other languages supported by macOS can be named per call.

Ask your agent

  • “This PDF is a scan of twelve forms. Which one has protocol 558-B, and who signed it?”
  • “Read the text on these receipts and list the totals.”
  • “Is page 4 legible? Show it to me.”

Examples of requests. Your agent chooses what to call; nothing in the request needs to mention TokenKit.

What it covers

Page by pageA confidence figurePage previews on requestLanguages

Works in the app and through your agent, inside the folders you allow. Originals are never changed.

What we measured

In our scanned-PDF task TokenKit finished in a median of 8.0 s. An agent equipped with tesseract finished in 7.2 s and used fewer tokens: on this task conventional tools remain ahead. Benchmarks.

Where it stops

  • Handwriting and very low-resolution scans are read poorly.
  • Recognition quality depends on the languages macOS supports.