Skip to main content
Glama

double_click

Destructive

Perform a double-click at absolute pixel coordinates inside a sandboxed instance to open file icons or select words. Fails if the instance is down or coordinates are off-screen.

Instructions

Double-click at absolute pixel coords in an instance (e.g. open a file icon, select a word). Same as click(count=2).

Returns {"ok", "action", "instance", "detail", "hit"?, "warnings"?} — see click(). observe/settle_ms/observe_region: see click(). Fails (isError) if the instance is down or the coordinates are off-screen.

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "double_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
observeNonone
instanceNo
settle_msNo
observe_regionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • addedInput schema / properties / observe_region
      Added value: +{
      +  "default": "",
      +  "title": "Observe Region",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=true, and openWorld=true, so the safety profile is covered. The description then adds genuinely new behavior: the return object's keys (ok, action, instance, detail, hit?, warnings?) and the two isError conditions (instance down, coordinates off-screen). It does not, however, warn that a double-click can trigger irreversible UI actions beyond what destructiveHint already signals.

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?

The purpose is front-loaded in the first clause with examples, and the return/failure notes follow compactly. The repeated 'see click()' deferrals are efficient but leave substantive gaps, slightly under-serving the reader.

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 6-parameter, 0%-schema-coverage tool with no output schema, the description does cover the return shape and failure modes. It leaves the coordinate frame ambiguous (absolute to the screen or to the instance window) and gives no meaning for observe/settle_ms/observe_region defaults, which an agent needs to call this reliably.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 6 parameters, so the description must carry the full burden, yet it only clarifies x/y as absolute pixel coordinates. observe, settle_ms, observe_region are dismissed with 'see click()', and instance's meaning is only implied; the agent must consult another tool to use any of them correctly.

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 precise verb ('Double-click') with a target ('absolute pixel coords in an instance') and concrete examples ('open a file icon, select a word'). It also states 'Same as click(count=2)', which establishes an explicit relationship to the click sibling, so an agent can tell exactly what this does.

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 'Same as click(count=2)' note and the failure conditions give indirect routing information, but there is no explicit statement of when to prefer double_click over click, click_element, or act. Usage is implied by the examples rather than stated.

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