Skip to main content
Glama

点击

browser_click
Destructive

Click page elements by snapshot ref to perform left, right, or double clicks and return an incremental snapshot showing the result so you can continue.

Instructions

Click an element by its snapshot ref (e.g. "e12"). Supports left click, right click (context menu), double click. An incremental snapshot is returned afterwards so you can see the result and continue.

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
refYesElement ref from browser_snapshot, e.g. "e12"
tabIdNoTab id (default: active tab)
buttonNoMouse button (default "left")
snapshotNoReturn an incremental snapshot after the action (default true)
doubleClickNoPerform double click (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description's main added value is the post-action behavior: an incremental snapshot is returned so the agent can inspect the result and continue. It also distinguishes right-click (context menu) from double-click. It does not explain why the action is destructive (e.g., navigation or form submission), leaving that gap to the annotation.

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?

Three short sentences, front-loaded with the action and ref format, then the supported click variants, then the return behavior. No filler or repetition; the only minor cost is that the return behavior is stated last rather than alongside the action.

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 five-parameter mutation tool with no output schema, the description covers the action, its variants, and the returned snapshot, which is the key thing an agent needs to keep a loop going. It omits failure behavior and whether the element must be visible or scrolled into view, which is a modest gap given the annotations already cover the risk profile.

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%, so the schema already documents ref, tabId, button, snapshot, and doubleClick. The description only adds semantic color — right click opens a context menu and double click is a distinct gesture — which is useful but does not materially extend the documented parameters.

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 opens with a concrete verb and resource — 'Click an element by its snapshot ref' — and gives a ref format example ("e12"). It does not name the neighboring interaction tools (hover, drag, press_key) that could be confused with it, so the differentiation is implicit rather than stated.

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?

The prerequisite of having a snapshot ref is implied by 'by its snapshot ref (e.g. "e12")', and the follow-up snapshot is described. However, there is no explicit when-to-use guidance against alternatives such as hover, drag, or form filling, and no note on when a click would be inappropriate.

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