Skip to main content
Glama

desktop_find_image

Locate a local template PNG/JPG inside a window or full desktop using normalized cross-correlation, then optionally click its center coordinates.

Instructions

Locate a local template PNG/JPG inside a window or full desktop using zero-dependency .NET C# normalized cross-correlation. Optionally clicks (cx, cy) immediately when click=true.

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": {
      "templatePath": "<templatePath>"
    },
    "name": "desktop_find_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
clickNo
scalesNo1.0
thresholdNo
window_idNo
templatePathYesAbsolute path to the template PNG/JPG image
delivery_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavioral trait: it performs a real click side effect immediately when click=true. It does not say what happens on a failed match, what is returned, the coordinate reference for cx/cy, or any timing/permission behavior, leaving substantial gaps for a tool with a mutating path.

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?

Two tight sentences, with the core operation front-loaded and the optional side effect clearly appended. The '(cx, cy)' parenthetical is slightly confusing but does not add bloat.

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

Completeness2/5

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

For a seven-parameter tool with 14% schema coverage, no annotations, and no output schema, the description leaves the agent without guidance on scoping the search region, scaling, thresholds, delivery modes, or the shape of the result. It is adequate only for the simplest call with a single required parameter.

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

Parameters2/5

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

Schema coverage is only 14% (one of seven parameters documented), so the description needs to compensate but largely does not. It mentions template path and the click flag, yet says nothing about pid, window_id, scales, threshold, or delivery_mode, and the '(cx, cy)' wording is ambiguous since those are not input parameters.

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

Purpose4/5

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

The description names a specific verb and resource: locate a local template PNG/JPG within a window or the full desktop, using normalized cross-correlation. That is clearly distinct from OCR-based siblings such as desktop_ocr_find. It stops short of explicitly differentiating itself from any named alternative, so a 4 rather than a 5.

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?

Usage is only implied: an agent can infer it is for template-matching against a window or the whole desktop. There is no explicit when-to-use/when-not guidance, and nothing tells the agent how to choose between window_id, pid, and the default full-desktop scope, or between background and foreground delivery.

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