Skip to main content
Glama

Click a point on a canvas

qa_click_point

Clicks at an x,y viewport coordinate for canvas-based apps like Figma, Miro, maps and chart editors, where no element name exists. Returns the element found under the point plus a change diff.

Instructions

Click at an x,y POINT instead of at an element — for applications that draw their interface inside a canvas, where there is nothing to name: Figma, Miro, maps, charts, diagram and image editors. Everywhere else use qa_click: it names what it pressed, survives a re-render and tells you when it missed, none of which a coordinate can do. Coordinates are CSS pixels from the top-left of the VIEWPORT, not of the page — the same frame a qa_screenshot is taken in, so reading a position off a screenshot works; scroll the target into view first. The reply names the element the browser found under the point, and carries the usual changed diff, so you can tell a press that did something from one that landed on empty canvas. HONEST LIMIT, and it is not theoretical: these events carry isTrusted: false. Anything that checks it will ignore the click and say nothing — measured on npmjs, where a React checkbox took the synthetic click and reverted it on the next render while a real one held. Canvas applications do not check it, which is why this verb is for them. When a page does check it, the reply carries realMouse: how to press the same point with a real click from the operating system (cliclick on macOS, PowerShell or AutoHotkey on Windows, xdotool on Linux) and how to turn this point into a screen one. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.

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

Input Schema

NameRequiredDescriptionDefault
xYesCSS pixels from the LEFT of the viewport
yYesCSS pixels from the TOP of the viewport
tabIdNoTarget tab (from qa_tabs); omit for the active tab

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses that events carry isTrusted:false, that pages checking it will silently ignore the click, and gives a measured real-world example. It also states the consent requirement and the consent-required failure mode, plus the realMouse fallback 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?

It is long, but front-loaded: the canvas-only scope and the qa_click alternative come first, then coordinate frame, then the trust caveat, then the prerequisite. A few clauses ('none of which a coordinate can do') are rhetorical rather than informational, which keeps it from a 5.

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?

For a 3-parameter tool with no output schema and no annotations, the description covers return content (the element under the point, the `changed` diff, `realMouse`), coordinate semantics, and failure modes. The only thin spot is tabId targeting, which is left entirely to the schema.

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 coverage is 100% and the schema already documents x and y as CSS pixels from the left/top of the viewport, so the baseline is 3. The description adds useful framing (same coordinate frame as qa_screenshot, so screenshot positions transfer) but nothing about tabId or value ranges beyond what the schema 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 and resource ('Click at an x,y POINT instead of at an element') and immediately bounds the domain to canvas-drawn interfaces (Figma, Miro, maps, charts). It explicitly contrasts itself with the sibling qa_click, so an agent can choose 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 an explicit when-to-use ('applications that draw their interface inside a canvas, where there is nothing to name') and an explicit when-not ('Everywhere else use qa_click'), backed by reasons. It also names the prerequisite consent gate and a procedural prerequisite ('scroll the target into view first').

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