Skip to main content
Glama

dblclick

Clicks twice on an @eN element reference or CSS selector in a browser session to activate, open, or select the target.

Instructions

Double-click an @eN ref or CSS selector.

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

Input Schema

NameRequiredDescriptionDefault
indexNoAct on the Nth match (0-based, document order).
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
targetYes@eN ref or selector.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.
timeout_msNoTimeout in ms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.21.0
    • changedInput schema / properties / index / description
      Previous value: -"Act on the Nth match (0-based, from `candidates`)."New value: +"Act on the Nth match (0-based, document order)."
  2. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the entire burden and discloses almost nothing: no mention of auto-waiting, scrolling into view, whether a double-click may trigger navigation and block until load, or what is returned on success/failure. Only the schema's timeout_ms hints that the call can block, and that is structured data, not description.

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 front-loaded sentence with zero filler; the action and the accepted input forms come first. It is efficient but so terse that the brevity shades into under-specification rather than elegance.

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 five-parameter browser mutation with no annotations and no output schema, the description should at least cover ref provenance, waiting behavior, and failure modes. It covers none of these, though the high schema coverage keeps it from being fully inadequate.

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%, so index, lease, session, and timeout_ms are already documented in the schema. The description's "@eN ref or CSS selector" merely restates the schema's target description, adding no format examples or ref-resolution rules.

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 specific verb (double-click) and the two accepted target forms (@eN ref or CSS selector), so the action is unambiguous. It does not distinguish itself from the very similar sibling 'click' or say why an agent would pick one over the other.

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 guidance on when to use this instead of 'click', 'hover', 'vision_click', or 'act', and no prerequisite stated (e.g. that an @eN ref must first come from an observation call). An agent must infer all of this from the sibling list.

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