Skip to main content
Glama
AVS845

screenshot-vision-mcp

by AVS845

locate_element

Find a UI element in an app window and return click coordinates. Uses local vision model for privacy; supports viewport-relative coordinates for Chrome.

Instructions

Find a UI element in an app window and return its click coordinates. Uses a local Ollama vision model — Claude never sees the image. For Google Chrome, pass viewport_bounds (computed from javascript_tool: {x: screenX, y: screenY + outerHeight - innerHeight, width: innerWidth, height: innerHeight}) to get viewport-relative coordinates usable directly with the Chrome computer tool. Without viewport_bounds, returns absolute screen coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoOllama vision model to use (defaults to OLLAMA_MODEL env var, or gemma4:e4b)gemma4:e4b
app_nameYesExact macOS app name, e.g. 'Google Chrome', 'Safari', 'Terminal', 'Cursor'
window_indexNoWhich window to capture if the app has multiple (1 = frontmost)
viewport_boundsNoScreen-coordinate bounds of the region to capture (e.g. Chrome's content area). For Chrome: compute as {x: screenX, y: screenY + outerHeight - innerHeight, width: innerWidth, height: innerHeight} using window.screenX/Y/outerWidth/outerHeight/innerWidth/innerHeight from javascript_tool. When provided, returned coordinates are relative to this region's (0,0) — viewport-relative for Chrome.
element_descriptionYesNatural language description of the element to find, e.g. 'the X close button in the top-right of the modal'
Behavior4/5

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

Since annotations are absent, the description carries the behavioral disclosure burden. It reveals key behaviors: the use of a local Ollama vision model ('Claude never sees the image'), privacy preservation, and the coordinate system semantics for viewport_bounds. It does not describe failure handling, permissions, or output format, but the disclosed traits are meaningful and non-obvious.

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?

The description is three sentences, each earning its place: core purpose, model/privacy, and coordinate behavior with a concrete example. The critical viewport_bounds guidance is front-loaded after the purpose, making the most actionable information easy to find. No filler words or redundancy.

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?

Considering the tool's complexity (nested viewport_bounds object, 5 params, no output schema, no annotations), the description covers the essential missing context: coordinate semantics and the crucial Chrome-specific computation. It omits edge cases like element-not-found behavior or return error structure, but for a coordinate-returning tool, the provided detail is sufficient for effective use.

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?

The schema already documents all 5 parameters with 100% coverage, so the baseline is 3. The description adds significant value by explaining exactly how to compute viewport_bounds for Chrome and why it changes the returned coordinates. This provides meaning beyond the schema's static field definitions.

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?

The description opens with an explicit, specific verb+resource statement: 'Find a UI element in an app window and return its click coordinates.' This clearly differentiates the tool from siblings like analyze_screenshot (which analyzes an image) and capture_window (which captures a window). The returned artifact (click coordinates) is unambiguous.

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

Usage Guidelines4/5

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

The description provides concrete guidance for the Chrome-specific case, including a detailed formula for viewport_bounds and the consequence of omitting it (absolute vs. viewport-relative coordinates). It does not explicitly name alternative tools or state when not to use this tool, but it offers clear contextual usage instructions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AVS845/screenshot-vision-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server