Skip to main content
Glama

browser_click

Clicks a web page element by its snapshot reference, supporting left, right, middle, double-clicks, and modifier keys for precise browser automation.

Instructions

Perform a click on a web page element identified by its snapshot ref.

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

Input Schema

NameRequiredDescriptionDefault
refYesExact target element reference from the page snapshot (e.g. 'e5').
buttonNoMouse button to click.left
elementNoHuman-readable description of the target element.
modifiersNoModifier keys to hold during click.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).
doubleClickNoWhether to double-click instead of single-click.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about side effects: whether the click navigates, opens dialogs, is held if a stale ref is passed, or how failures surface. For an interaction tool with no annotation coverage this is a substantial gap.

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?

A single front-loaded sentence with zero filler, and the targeting mechanism is stated up front. The brevity is efficient, though part of it reflects under-specification rather than true economy.

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

Completeness2/5

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

Six parameters, mutation-style interaction, no annotations and no output schema — the description should at minimum cover the snapshot-ref prerequisite and basic failure/side-effect behavior. Given that complexity, it is too thin to guide correct invocation.

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 description coverage is 100%, including the ref example ('e5'), button enum, modifiers, doubleClick, and sessionId fallback behavior, so the schema does the heavy lifting. The description adds no parameter meaning beyond restating the ref-based targeting.

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 verb ('click') and resource ('a web page element') with the identification mechanism ('snapshot ref'), which lets an agent distinguish it from browser_hover, browser_drag, or browser_press_key. It does not explicitly name any sibling or scope boundary, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention that a browser_snapshot must be taken first to obtain a valid ref, and no statement about when to prefer browser_click over browser_hover, browser_drag, or browser_fill_form. Usage is only inferable from the phrase 'snapshot ref'.

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