Skip to main content
Glama

Click or hover page element

browser_click

Clicks, double-clicks, right-clicks, or hovers a page element identified by snapshot ref, CSS selector, visible text, or ARIA role to control Chrome tabs.

Instructions

Click, double-click, right-click, or hover an element identified by snapshot ref (e.g. 'e4'), CSS selector, accessible text, or ARIA role.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from browser_snapshot, e.g. 'e1'.
roleNoOptional ARIA role / tag filter (e.g. 'button', 'link').
textNoVisible text or aria-label substring to match.
tabIdNoControlled tab id.
buttonNoMouse button (default 'left').
selectorNoCSS selector (also searches open Shadow DOM).
hoverOnlyNoMove pointer/hover without clicking (default false).
doubleClickNoPerform a double-click (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is carried structurally. The description adds the hover-only mode, which clarifies that not every invocation interacts destructively, but it does not say what happens on a failed match, whether actions scroll into view, or whether the call blocks. A modest, not rich, addition over the annotations.

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 the action set first and the identification methods second; nothing is padded. It loses a point only because the compression drops useful ordering information, such as which locator wins when ref and selector are both supplied.

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?

With eight parameters and zero required fields, the definition never states that at least one locator must be provided or what happens if none is. It is otherwise proportionate given the absence of an output schema and annotations that cover the side-effect profile, but the missing locator requirement is a real gap for an agent composing a call.

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%, so every one of the eight parameters is already documented, including the button enum and the ref example. The description maps each action verb to its corresponding boolean (double-click, right-click, hover) and lists locator strategies, which lightly reinforces the schema but adds no syntax or precedence detail beyond it. Baseline 3 applies.

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?

The description pairs concrete verbs (click, double-click, right-click, hover) with a concrete resource (a page element) and enumerates the four ways an element can be identified. It stops short of naming how it relates to siblings such as browser_snapshot or browser_type, but the action is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of a 'snapshot ref' hints that browser_snapshot should be called first, and the verbs imply when to pick this over browser_type or browser_press_key. There is no explicit when-to-use or when-not-to-use statement and no guidance on which locator strategy to prefer.

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