Skip to main content
Glama

Click

browser_click

Clicks a browser element by CSS selector, visible text, or snapshot ref to automate web interactions, with optional engine selection and timeout to handle dynamic pages.

Instructions

点击一个元素:传 CSS 选择器、可见文本,或快照里的 ref(ref=12)。默认 ego 引擎。

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

Input Schema

NameRequiredDescriptionDefault
engineNo浏览器引擎:ego(默认,真实浏览器 + 登录态)/ edge(Playwright/Edge,需另装 playwright)ego
targetYesCSS 选择器 / 文本 / ref=12
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 disclosure burden, and it discloses very little: it does not say whether the tool waits for the element, scrolls it into view, retries, fails, or how errors surface. The one genuine behavioral hint is that ref values come from a snapshot, implying a prerequisite ordering with browser_snapshot. The "default ego engine" clause merely restates the schema default.

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 short sentence with the core action and locator options front-loaded and no filler. It is efficient, though the trailing engine note spends words on something the schema already declares as a default.

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?

For a click tool that mutates page state, with no annotations and no output schema, an agent is left without return-value expectations, error behavior, or timing guidance, and one parameter is undocumented. The locator formats and the snapshot-ref linkage cover the essentials needed to form a correct call, but not to anticipate its outcome.

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 67%, an in-between case. The description largely mirrors the schema's own target description ("CSS selector / text / ref=12") and the engine default, adding little; the useful addition is linking ref to a snapshot. The undocumented timeout_ms parameter is not explained in either place.

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 and resource ("click an element") and enumerates the three accepted locator forms (CSS selector, visible text, snapshot ref), so an agent knows exactly what operation is performed. It does not, however, distinguish itself from the sibling tool named "click", leaving an ambiguity an agent must resolve by other means.

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 / when-not-to-use guidance, no prerequisites (e.g. needing a prior snapshot for refs), and no routing to alternatives such as press_key, drag, or the sibling click. The only implied guidance is the enumeration of locator formats, which is locator syntax rather than usage context.

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