Skip to main content
Glama
computer
by zznabil

Element at point

ax_element_at
Read-onlyIdempotent

Locate the accessibility element at global logical desktop coordinates, optionally scoped to a window, to identify UI targets for inspection or control.

Instructions

Accessibility hit-test at GLOBAL logical desktop coordinates (as in ax_find bounds / list_windows, not screenshot pixels).

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "ax_element_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesGlobal x.
yYesGlobal y.
targetNoOptional window id scope (default "desktop").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. The description adds important behavioral context by specifying that coordinates are GLOBAL logical desktop coordinates, not screenshot pixels, which prevents a common calling mistake. It does not describe no-element behavior or the return payload, but the core coordinate semantics are covered.

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?

One compact sentence, front-loaded with the operation and followed by the critical coordinate distinction. There is no filler.

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

Completeness3/5

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

For a simple 3-parameter hit-test tool with full schema coverage and strong annotations, this is mostly sufficient. It omits what is returned and how target scope affects results, which matters somewhat because there is no output schema.

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 the baseline is 3. The description still adds meaningful interpretation beyond the schema: x and y are global logical desktop coordinates matching ax_find bounds and list_windows, not screenshot pixels.

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?

States a specific action, "Accessibility hit-test," and the resource context, accessibility element at a point. It clearly distinguishes the coordinate domain from screenshot pixels, though it does not explicitly say it returns an accessibility element.

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 implied: call it with global logical coordinates, such as bounds from ax_find or list_windows. It usefully excludes screenshot pixels but gives no explicit when-to-use vs ax_find, ax_focused, or other element siblings.

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