Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

click_element

Clicks a page element at its center using a node ID from querySelector; use is_paused to check whether an async click triggered a breakpoint.

Instructions

Click on an element by node ID (clicks at center). Async - use is_paused to check if breakpoint was hit.

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": {
      "nodeId": "<nodeId>"
    },
    "name": "click_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
buttonNoMouse button. Default: left
nodeIdYesNode ID from querySelector

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose two useful traits: the click lands at the element center and the operation is async so the agent should poll is_paused. It omits other important behavior though - what happens if the node ID is stale or the element is off-screen, whether it scrolls into view, and what a success response looks like.

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 short sentences with the primary action front-loaded and no filler. It is efficient, though the parenthetical about center clicking sits mid-sentence rather than in a cleaner position.

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 simple two-parameter click tool with fully described schema, the definition covers the essential action and the async caveat. It falls short on failure behavior and the return value (no output schema exists), which an agent would need to know when a click does not visibly take effect.

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%, so both parameters (nodeId and button) are already documented in the schema. The description adds only the center-click positioning detail and reiterates the node ID source; the baseline 3 applies when the schema does the heavy lifting.

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 ('Click') and target ('an element by node ID'), plus the concrete mechanism of clicking at the element's center. The only shortfall is that it does not distinguish itself from the sibling 'click' or 'activate_target' tools, leaving some ambiguity about which click variant to pick.

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?

The clause 'Async - use is_paused to check if breakpoint was hit' implicitly tells the agent this tool may not complete synchronously and must be verified afterwards, which is real usage context. However, there is no explicit when-to-use vs when-not guidance relative to the sibling 'click' tool, so alternatives remain unaddressed.

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

Deploy Server

Other Tools