Skip to main content
Glama
ohaoz
by ohaoz

click

Simulate a user click on the active Chrome tab using a DOM node ID, viewport coordinates, CSS selector, or visible text to interact with page elements.

Instructions

Click on the active tab. Prefer node_id (from snapshot) or x+y (viewport coordinates); selector/text use Playwright and may be less reliable when Codex shares the page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoViewport X coordinate.
yNoViewport Y coordinate.
textNoVisible text to match.
tab_idNoOptional tab id.
node_idNoDOM node id from a visible-dom snapshot.
selectorNoCSS selector.
Behavior3/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. It discloses reliability caveats for selector/text approaches, which is useful. However, it doesn't describe what happens on failure (no element found, multiple matches), whether clicks wait for navigation, or the return value/response format since there's no output schema.

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?

Two sentences, zero waste. Front-loaded with the primary action, then delivers a prioritized parameter recommendation in the second sentence. Every phrase earns its place.

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?

This is a moderately complex tool with 6 parameters, no output schema, and no annotations. The description covers the action and parameter-preference ranking well, but for a tool with multiple parameter mechanisms and no return-value documentation, it could note what the tool returns or signals on success/failure. Sibling list is rich, so some context on when to use click vs type_text/press_key/goto would improve completeness.

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% with all 6 parameters documented in the input schema (x/y coords, text, tab_id, node_id, selector). The description adds value by ranking these mechanisms by reliability (node_id/coords preferred over selector/text). It doesn't add syntax or format details beyond schema, but the prioritization guidance is genuinely useful. Baseline 3 is appropriate given full schema coverage.

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?

Description states specific verb+resource ('Click on the active tab') with clear scoping. It distinguishes itself slightly from sibling tools by its action (click vs navigate/type/snapshot), though it doesn't explicitly name alternatives. The mechanism guidance about node_id vs coordinates vs Playwright selector adds useful operational context.

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?

Description provides clear guidance on which parameter forms to prefer (node_id or x+y over selector/text) and why (Playwright may be less reliable when Codex shares the page). This is actionable, though it doesn't explicitly state when NOT to use click or name alternative tools—selecting among siblings (goto, type_text, press_key) is left implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ohaoz/chrome-use-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server