Skip to main content
Glama

browser_click_xy

Clicks at exact viewport coordinates using trusted mouse events, providing a fallback when visible buttons cannot be targeted by selectors.

Instructions

ESCAPE HATCH: Click at raw viewport coordinates (CSS pixels) with fully trusted mouse events. Use when a visible button resists every selector strategy (Azure portal dialogs, Knockout-bound divs, canvas UIs): take a screenshot, read the button's position, click its center. Coordinates are CSS pixels, NOT image pixels: convert with the viewport line browser_screenshot returns: x_css = x / W * css_width and y_css = y / W * css_width, where (x, y) is the point in the image and W is the width the image is shown to you at.

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

Input Schema

NameRequiredDescriptionDefault
xYesX coordinate (CSS pixels, from left of viewport)
yYesY coordinate (CSS pixels, from top of viewport)
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. Addedv1.28.0

TDQS

A4.3/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 genuinely useful behavior: the events are 'fully trusted' mouse events, and coordinates are viewport CSS pixels, not image pixels. However, it never says what happens if nothing clickable sits at that point, what the call returns, or whether it waits for a response — meaningful gaps for a blind-coordinate mutation.

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?

Front-loaded with the 'ESCAPE HATCH' label, then the condition, then the mechanics — good ordering with no filler sentences. The coordinate-conversion passage is dense and its asymmetric x/y formulas cost readability, but the content is necessary rather than padding.

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?

Covers trigger conditions, coordinate semantics, conversion from screenshots, and the trusted-event behavior for a 3-parameter tool with no output schema and no annotations. What is missing is the outcome side — return value, out-of-bounds or wrong-target behavior, and any need to scroll the element into view first.

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% and each parameter is documented, so baseline is 3; the description exceeds that by explaining the CSS-pixel vs image-pixel distinction and supplying a conversion formula from image coordinates. That is real added meaning an agent could not get from the schema alone, though the second formula (y derived from W and css_width) reads as inconsistent and may confuse rather than help.

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 mechanism — click at raw viewport coordinates in CSS pixels with trusted mouse events — and frames the tool as an 'ESCAPE HATCH', which instantly separates it from the selector-based siblings such as browser_click. An agent knows exactly what this does and what class of tool it is not.

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 escalation condition: use only when a visible button 'resists every selector strategy', with concrete trigger scenarios (Azure portal dialogs, Knockout-bound divs, canvas UIs). It also prescribes the prerequisite sequence — take a screenshot, read the button's position, click its center — so both when and how are covered.

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