Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Click the mouse (raw coordinates)

click

Move the real mouse pointer to specified x/y coordinates and press a mouse button through kernel input, enabling interaction with canvas or custom-drawn UI when accessible element names are unavailable.

Instructions

Move to (x, y) and click a real mouse button there via the kernel input layer (uinput), like a physical mouse. Prefer click_element for anything with an accessible name (buttons, links, fields) — it's exact and doesn't require knowing pixel coordinates. Use this raw version for canvas/custom-drawn UI, or coordinates you got from a screenshot.

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": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
buttonNoleft
clicksNo1 = single click, 2 = double click
screenshot_idNo
window_addressNo
coordinate_spaceNoscreen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the important behavioral fact that input goes through uinput at the kernel level like a physical mouse, which implies real OS-level events rather than DOM synthesis. It does not cover preconditions (does the target window need focus?), failure modes for out-of-bounds or unmapped coordinates, or what a call returns on failure, which are significant gaps for an unannotated input-injection tool.

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?

Three tight sentences with the action first, then the alternative, then the exception case — no filler. Minor redundancy between 'real mouse button' and 'like a physical mouse', but everything else earns its place.

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 7-parameter, unannotated, no-output-schema mutation tool, the description covers purpose and routing well but is thin on the optional parameters and on behavioral edge cases (focus requirements, coordinate resolution, failure signaling). It is adequate to select the tool but not fully sufficient to invoke it correctly in multi-window or cropped-screenshot scenarios.

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 description coverage is only 14% (only 'clicks' is documented), so the description must compensate. It clarifies x/y and implicitly the screenshot-crop coordinate case by mentioning coordinates taken from a screenshot, but leaves window_address, screenshot_id, and coordinate_space entirely unexplained, plus no guidance on how x/y are resolved when a window address is given.

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 and resource ('Move to (x, y) and click a real mouse button there') plus the mechanism ('via the kernel input layer (uinput), like a physical mouse'). It explicitly distinguishes itself from the sibling click_element, so an agent can route between the two without opening either 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?

Gives both sides of the routing decision: prefer click_element for anything with an accessible name (buttons, links, fields), and use this raw version for canvas/custom-drawn UI or coordinates derived from a screenshot. The condition that selects this tool versus its alternative is explicit.

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