Skip to main content
Glama

browser_click

Click an element on a ready sandbox's page, by its ref from browser_snapshot, or a point (x and y, in CSS pixels in the viewport), with the mouse on its screen. When the click opens another page, it answers once that has loaded, with the page's URL and title.

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": {
      "sandbox_id": "<sandbox_id>"
    },
    "name": "browser_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoOr the point to click, in CSS pixels from the left of the viewport.
yNoAnd from the top of the viewport.
refNoThe element to click, by its ref in the page's latest snapshot. It's scrolled into view and clicked in its middle.
buttonNo`left`, `right` or `middle`; `left` when absent.left
doubleNoA double click.
sandbox_idYesThe sandbox, `sbx_…`.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page's URL.
titleYesThe page's title.
snapshotNoThe page's accessibility tree as an indented outline, one element a line: `- role "name" [ref=N]`. A ref names the element to click, type into or scroll to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds real behavioral context by saying it waits for a newly opened page to load and returns its URL and title. It does not warn that a click can trigger irreversible page-side actions, which matters for a non-readOnly 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?

Two sentences, verb-first, with the targeting modes front-loaded and the return behavior last. Slightly awkward phrasing ('with the mouse on its screen', 'answers once that has loaded') costs a little clarity but nothing is 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?

For a 6-parameter interaction tool with full schema coverage, an output schema, and annotations, the description covers targeting, the ready-sandbox precondition, and the navigation return case. Missing only failure behavior and side-effect warnings, which are secondary given the output schema exists.

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 baseline is 3, but the description adds meaning the schema does not: ref and x/y are presented as mutually exclusive alternatives, and ref provenance is tied to browser_snapshot. Button, double, and sandbox_id semantics are left to the schema, which is fine given its completeness.

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 (Click) and resource (an element on a ready sandbox's page), and names the two targeting modes. It also points to browser_snapshot as the source of refs, which lets an agent separate this tool from the snapshot tool 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear operational context: target by ref taken from browser_snapshot, or by viewport coordinates. It never states when not to use the tool or what to do if the sandbox isn't ready, so it stops short of explicit when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources