Skip to main content
Glama
mcp-server-visual-stack-browser

mcp-server-visual-stack-browser

by cadivus

ocr_screenshot

Run OCR on the current page to extract text and obtain click-ready coordinates for locating or clicking text elements. Returns plain text or structured JSON with spatial grouping and button detection.

Instructions

PREFERRED over take_screenshot when you only need text or want to locate/click a text element (cheaper, no vision model needed). Runs OCR on the current page. blocks=false (default) returns a plain string. blocks=true returns JSON: [{ text, center_x, center_y, is_likely_button? }] — spatially grouped phrases that isolate buttons, labels, links, etc. is_likely_button field is only present when true (text has a visible border/frame and looks clickable). center_x/center_y are ready to pass to click_at_coordinates. Use ocr_screenshot_search to find a specific word or phrase.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>"
    },
    "name": "ocr_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoTesseract language code(s), e.g. 'eng', 'deu', 'eng+deu' (default: 'eng').
blocksNofalse (default) = plain text string. true = JSON array of spatially grouped phrases: [{ text, center_x, center_y, width, height, confidence }]. Good for isolating buttons, labels, links.
session_idYesSession ID returned by start_browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and mostly succeeds: it explains the two output modes, the shape of each, the conditional presence of is_likely_button, and that coordinates are click-ready. It stops short of saying whether capture is viewport-only or full-page (relevant when combined with scroll) or what happens if no session/page is loaded, so a real behavioral gap remains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the PREFERRED comparison before mechanics, and the field enumeration is compact. The middle is dense with parenthetical clauses ("cheaper, no vision model needed", "text has a visible border/frame and looks clickable"), which slightly slows scanning but each clause adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Three params, no annotations and no output schema mean the description must explain returns, and it does so for both modes. The lang parameter is left entirely to the schema, and viewport-vs-full-page scope is unstated, but nothing critical for a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description earns extra by explaining what blocks actually changes (plain string vs JSON array) and that center_x/center_y feed click_at_coordinates. Note a minor mismatch: the description's field list omits width/height/confidence shown in the schema and adds is_likely_button, which the schema does not list.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Runs OCR on the current page" is a specific verb+resource, and the opening line immediately positions it against take_screenshot (text-only, cheaper, no vision model) and closes by routing to ocr_screenshot_search. An agent can distinguish all three without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ("when you only need text or want to locate/click a text element") plus the decisive tradeoff (cheaper, no vision model needed) and an explicit alternative for a different need ("Use ocr_screenshot_search to find a specific word or phrase"). This is close to ideal routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.