Skip to main content
Glama

browser_click

Clicks web page elements using a snapshot ref (e.g., 'e12'), CSS selector, text match, or ARIA role to trigger buttons, links, and form controls during automated browsing.

Instructions

点击元素。优先用 ref(来自 browser_snapshot,如 'e12');也支持 CSS 选择器 / text=文案 / 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
refNo快照中的元素编号,如 e12
selectorNoCSS 选择器 / text=文案 / role=名称(与 ref 二选一)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about what a click does to page state, whether it waits for navigation or load, whether existing refs become stale afterwards and require a fresh snapshot, or how missing/invisible elements are reported. The only behavioral hint is the ref provenance, which is not enough for a state-mutating action 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 compact clauses, front-loaded with the action verb and followed by the disambiguation of the two argument styles; no filler sentences. It is short to the point of omitting post-click behavior, but nothing present is redundant.

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?

For a mutation/action tool with no annotations and no output schema, the description omits the essentials an agent needs to call it safely: post-click waiting, ref staleness after DOM changes, and failure behavior. It covers argument sourcing well but leaves the operational contract largely unexplained.

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% and the schema already documents both ref and selector including the either/or constraint and format examples, so the description largely restates structured data. It does add one piece of meaning not in the schema: that ref is preferred over selector, which justifies the baseline 3 rather than lower.

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?

Names a specific action and object ('点击元素' / click element) and immediately ties it to the browser_snapshot source of refs, so an agent can separate it from sibling tools like browser_type or browser_press_key. It does not describe the effect of the click (navigation, form submit, state change), so the purpose is clear but the outcome 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 Guidelines4/5

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

Gives an explicit preference order: use ref first, fall back to selector forms (text=/role=), and states where refs come from (browser_snapshot, format 'e12'). It lacks when-not guidance, such as which sibling to use for typing into fields or pressing keys instead of clicking.

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