Skip to main content
Glama

Click Element or Coordinates

gpm_browser_click

Click webpage elements by CSS/Playwright selector or X/Y coordinates in GPMLogin anti-detect browsers, with optional mouse button, double-click, profile, and timeout settings.

Instructions

Click vào phần tử theo CSS/Playwright selector (vd "button.submit", "text=Đăng nhập") hoặc theo tọa độ x, y.

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

Input Schema

NameRequiredDescriptionDefault
xNoTọa độ X (dùng khi không truyền selector)
yNoTọa độ Y (dùng khi không truyền selector)
buttonNoNút chuột (mặc định left)
selectorNoCSS hoặc Playwright selector
profile_idNoID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối)
timeout_msNoTimeout mili-giây (mặc định 15000)
double_clickNoDouble click nếu true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 burden and largely drops it. It never says the click may trigger navigation, whether the tool waits for the action to complete, what happens when the selector matches nothing before timeout_ms, or what a failed call looks like. Only the bare action is stated.

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?

One short sentence with the primary mechanism (selector) front-loaded and the coordinate fallback second. Nothing is redundant, and the inline examples earn their space.

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?

This is a 7-parameter interaction tool with no annotations and no output schema, so the description must explain side effects, waiting and error behaviour. It covers only the targeting choice and is silent about what the click returns, whether it blocks until the action settles, and how profile selection works when omitted.

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%, which sets the baseline at 3. The description does add value by giving concrete selector syntax examples and by framing x/y as the fallback when no selector is passed, but it says nothing about double_click, button, profile_id or timeout_ms that the schema does not already cover.

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 names a concrete verb (click) and the two targeting resources (a CSS/Playwright selector or x,y coordinates), with inline selector examples ("button.submit", "text=Đăng nhập"). That is enough to separate it from siblings like gpm_browser_type, gpm_browser_press or gpm_browser_select without opening the schema.

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?

It presents the two targeting modes (selector vs coordinates) with "hoặc", which implies the agent can pick either. It does not say when coordinates should be preferred (e.g. canvas, elements with no stable selector), nor does it point to alternatives such as gpm_browser_press for keyboard input or gpm_browser_wait before clicking.

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