Reading the screen
Install Tesseract and a vision model so MEGA can read what is on your screen.
Last updated 10 October 2026Applies to MEGA 1.0+
For "click the blue Continue button" or "what does this error say?", MEGA has to find things on your screen. It works out how with a short ladder of methods, and two of the rungs need something extra from you: Tesseract for reading text, and a vision model for understanding what an image shows. This page installs both. Neither is required to use MEGA; both make it noticeably better at the screen.
Honest limitation· Not every screen is easy
Many apps and most web pages expose little accessibility data, so OCR and vision do much of the work there, and they are slower and less exact. Clicks can miss. MEGA checks whether a click did anything and corrects its aim, but not every time.
How MEGA finds things
To find "the blue Continue button", MEGA tries these in order, and the first confident answer wins:
- Markers: exact spots you taught it ("save this as the export button").
- Screen memory: spots where a click was previously verified, remembered per app, window and size.
- Windows UI Automation: the app's own accessibility tree. It gives exact positions, and for real buttons and menu items MEGA can press them with no pixel guessing.
- OCR (Tesseract): reads text boxes on the screen. Needs: Tesseract OCR
- A vision model: asks a model which region holds the target, refining up to three times. This has the lowest confidence and is the last resort. Needs: An AI model
After acting, MEGA compares the screen before and after, with three verdicts: changed, missed or can't tell. On a measured miss it asks a different rung, and it learns small, repeatable aim corrections on your machine.
Install Tesseract (OCR)
Tesseract is a free program, separate from MEGA.
- Download the UB-Mannheim build of Tesseract for Windows. Choose the 64-bit installer.
- Run the installer and keep the default location,
C:\Program Files\Tesseract-OCR. - Restart MEGA, so that it notices Tesseract.
- Run the health check (Settings → Diagnostics, or
doctor.bat) and look at the OCR line. It should say Tesseract was found.
If Tesseract is installed somewhere else
If you chose another folder, tell MEGA where it is. This is set in MEGA's configuration file, because Diagnostics shows the result but has no field for the path.
-
Quit MEGA.
-
Open
%USERPROFILE%\.mega\workspace\config.jsonin Notepad. -
Add an
ocrentry with the full path totesseract.exe. Use double backslashes, as JSON requires:JSON{ "ocr": { "tesseract_cmd": "D:\\Tools\\Tesseract-OCR\\tesseract.exe" }} -
Save the file and restart MEGA.
-
Open Settings → Diagnostics and check the OCR line.
Warning· Edit with care
If config.json already has other settings, add the ocr block inside the existing braces instead of replacing the file, and keep a copy first. A stray comma or missing quote makes the file unreadable. config.json is private to you: never attach it to a support request.
Add a vision model
A vision model looks at a picture of your screen and says what is in it. It is how MEGA answers "What's on my screen?" and the last resort for finding a target.
Local vision with Ollama
If you use Ollama, pull a small vision model. MEGA's default is gemma3:4b:
ollama pull gemma3:4bAlternatives that work in the same way are llava:7b and moondream. Once pulled, choose it as MEGA's vision model. Text and vision are configured separately, so you can change one without the other. With Ollama for vision, screenshots are processed on your PC.
Cloud vision
A cloud vision model is much stronger at reading the screen than a small local one. Add an API key from Anthropic, OpenAI, Google or xAI, and choose a vision-capable model. The trade-off is that screenshots go to that provider under your own account, and each look at the screen is a billable model call. Many people use a local chat model with a cloud vision model; see mixing local and cloud.
Try it
Once Tesseract or a vision model is in place, ask MEGA "What's on my screen?" or open a document with an error message and ask "What does this error say?". The Vision view also shows a live mirror of your desktop, an OCR overlay and a describe-screen button. A webcam view is available too, but it only runs when you start it.
Reading past the fold
MEGA 1.5 and later
From MEGA 1.5, MEGA can scroll and read past the first screen: whole web pages, long PDFs or a scrolling window. Agents also scroll more reliably than before.
If it clicks the wrong thing
- Tell MEGA what it got wrong. It checks and corrects, and it learns small aim corrections on your machine.
- Install Tesseract if you have not, and add a vision model.
- If you have changed Windows display scaling, spots MEGA remembered may now be off. Tell it what it got wrong and it will learn the new positions.
- Teach it the exact spot with a marker ("save this as the export button").
More in Troubleshooting.
Was this helpful?
Still stuck?
If this page did not solve it, write to us and we will help.