Skip to main content
Glama

click

Clicks a specified element after scrolling it into view and waiting for clickability, then returns the updated page snapshot and any triggered events like navigation, new tabs, popups, or downloads.

Instructions

点击元素。会自动滚动到可见并等待元素可点击。返回点击后的页面快照和发生的事件(跳转、新标签页、弹窗、下载)。

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": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes目标元素的 ref(来自 snapshot,如 e12)
buttonNo
elementNo元素的简短描述(仅用于日志,便于人工排查)
modifiersNo按住的修饰键
doubleClickNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and openWorldHint=true. The description goes further by disclosing the automatic scroll-into-view and clickability wait, and by naming the side effects that may follow a click (navigation, new tab, dialog, download) plus the returned post-click snapshot. That is meaningful behavior beyond the structured fields, though error behavior when the element is not found is unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, then the automatic behaviors, then the return payload. Every clause earns its place and the parenthetical event list is the most useful part.

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?

With no output schema, the description usefully explains what comes back (post-click snapshot and triggered events), which is exactly the gap it needs to fill for an open-world mutation tool. It stops short of covering failure modes or the button/doubleClick options, which keeps it from a 5.

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 60%, with the required ref and the element/modifiers fields documented in the schema, while button and doubleClick have no description anywhere. The description adds nothing about these parameters, so the two undocumented options remain opaque, but the schema carries enough for the core call.

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 uses a specific verb and resource ('点击元素' / click an element) and adds the key scope detail that the element is auto-scrolled into view and awaited for clickability. It doesn't explicitly contrast with siblings like hover or press_key, but the purpose is unambiguous on its own.

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: you click when you want to click. There is no guidance on when to prefer this over hover, press_key, select_option, or doubleClick, nor any stated prerequisite (e.g., needing a ref from snapshot). Adequate but with clear gaps.

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