Skip to main content
Glama

Click

click

Scrolls an element into view and performs a human-path pointer press, returning what resulted or what covers it; also supports canvas-text caret placement and view-coordinate targeting.

Instructions

Scrolls the element into view, moves the pointer to it along a human path and clicks; answers with what the click led to and what changed. A covered element is refused with what covers it. In text a canvas shows (Google Docs), clicks at a place in it (text_before, text_after): between two characters it puts the caret there. Or clicks at a point of the view (x, y). Whatever is at a place or point takes the click, and nothing scrolls.

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

Input Schema

NameRequiredDescriptionDefault
xNoA point to click instead of an element, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.
yNoIts y, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.
idNoAn element id from a listing, such as a12.
countNo2 for a double click (a word), 3 for a triple (a paragraph).
quietNoAnswer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.
buttonNo
modifiersNoKeys held during the click (Shift extends a selection).
text_afterNoThe text that begins at the place.
snapshot_idNoThe snapshot whose image the point was read off (s3): the point is then in that image's pixels, which view's note gives when they are not the view's CSS pixels. It must be of this tab's current page.
text_beforeNoAim by the canvas text in view: the place where this text ends (with text_after, where text_after begins). It must read so in exactly one place; whitespace counts as one space.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.2
    • changedInput schema / properties / count / description
      Previous value: -"2 for a double click."New value: +"2 for a double click (a word), 3 for a triple (a paragraph)."
    • changedInput schema / properties / modifiers / description
      Previous value: -"Keys held during the click."New value: +"Keys held during the click (Shift extends a selection)."
    • addedInput schema / properties / quiet
      Added value: +{
      +  "description": "Answer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / snapshot_id
      Added value: +{
      +  "description": "The snapshot whose image the point was read off (s3): the point is then in that image's pixels, which view's note gives when they are not the view's CSS pixels. It must be of this tab's current page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_after
      Added value: +{
      +  "description": "The text that begins at the place.",
      +  "type": "string"
      +}
    • addedInput schema / properties / text_before
      Added value: +{
      +  "description": "Aim by the canvas text in view: the place where this text ends (with text_after, where text_after begins). It must read so in exactly one place; whitespace counts as one space.",
      +  "type": "string"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "description": "A point to click instead of an element, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.",
      +  "type": "number"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "description": "Its y, in CSS pixels of the view; with snapshot_id, in pixels of that snapshot's image.",
      +  "type": "number"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the human-like pointer path, that a covered element is refused along with what covers it, that the answer reports what the click led to and what changed, and the quiet shortcut for pages where every click churns the listing. It does not say how disabled elements or navigation-triggering clicks are reported, which keeps it below the top mark.

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 core behaviour is front-loaded in one well-formed sentence and the mode-specific rules follow. Some phrasings are compressed to the point of awkwardness ('In text a canvas shows (Google Docs), clicks at a place in it'), and the closing claim that nothing scrolls sits uneasily beside the opening promise to scroll the element into view, costing a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, no-required, no-output-schema tool, the description covers the targeting modes, the returned information and the coverage refusal case adequately. What is missing is the interaction between the scroll promise and the 'nothing scrolls' clause, and what happens when targeting inputs are combined or absent.

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

Parameters4/5

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

Schema coverage is already 90%, so the baseline is 3, but the description adds real meaning: text_before/text_after place the caret between two characters, count maps to word and paragraph selection, and modifiers can extend a selection. It also clarifies precedence among the alternative targeting parameters, which the schema leaves implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb chain and resource: scrolls into view, moves the pointer along a human path, then clicks, and returns what the click led to. It also distinguishes the three targeting modes (element id, canvas text via text_before/text_after, and view point via x/y), which separates it from siblings such as hover, drag or press.

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?

It tells the agent which mode to pick: canvas text for Google-Docs-like surfaces, a point of the view, or an element from a listing, and notes that whatever sits at the place or point takes the click. It gives no explicit contrast with sibling actions (hover for pointing without activating, drag for press-move-release, type for text entry), so the exclusion side is implied rather than stated.

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