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

mcp-server-visual-stack-browser

by cadivus

ocr_screenshot_search

Find a word or phrase on the current page via OCR; returns match coordinates for clicking. Searches word, line, paragraph, and block levels.

Instructions

OCR the current page and search for a specific word or phrase. Returns all matches as [{ phrase, granularity, center_x, center_y }] — center_x/center_y are ready to pass to click_at_coordinates. Searches across all granularity levels (word → line → paragraph → block) so both single words and multi-word phrases are found.

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>",
      "needle": "<needle>"
    },
    "name": "ocr_screenshot_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoTesseract language code(s), e.g. 'eng', 'deu', 'eng+deu' (default: 'eng').
needleYesCase-insensitive substring to search for, e.g. 'akzeptieren' or 'Sign in'.
session_idYesSession ID returned by start_browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden; it discloses the return shape and the word→line→paragraph→block matching behavior, which is genuinely useful. It does not say whether it re-captures the screen or reuses a cached OCR pass, how expensive/latent OCR is, or what happens on zero matches (empty list vs error), which matters for an OCR-bound call.

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

Conciseness5/5

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

Two sentences, front-loaded with the action, followed by the exact return shape and the downstream consumer of the coordinates. No filler and no repetition of the schema.

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?

No output schema exists, but the description documents the returned array fields, so an agent knows what it gets back. For a three-parameter tool with no annotations, the remaining gap is operational context (latency, whether a fresh screenshot is taken, behavior on no matches) rather than anything blocking correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents session_id, needle, and lang, and this sets the baseline at 3. The description adds some meaning by framing needle as matched case-insensitively against single words and multi-word phrases, but says nothing about lang beyond what the schema already states.

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?

States a specific verb+resource pair ('OCR the current page and search for a specific word or phrase') and immediately contrasts with a plain OCR tool by promising match results with coordinates. An agent can tell this is a locate-and-click tool rather than a text-dump tool without opening the schema.

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

Usage Guidelines3/5

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

The mention that center_x/center_y are 'ready to pass to click_at_coordinates' implies the intended workflow (find something, then click it), which gives usable context. However, there is no explicit guidance on when to prefer this over ocr_screenshot or execute_javascript, and no stated preconditions such as needing a browser already started.

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