Skip to main content
Glama

gesture-tap

Tap buttons, links, or other tappable elements on iOS simulators, physical iOS devices, Android emulators, or Chromium apps using screen-relative coordinates to automate UI interaction.

Instructions

Press the device screen (iOS simulator or physical device, Android emulator, or Chromium app) at a point given as fractions of the screen width and height (not pixels): a Down event followed by an Up event at the same spot. Use when tapping a button, link, or any tappable element on the screen. Returns { tapped: true, timestampMs }. On physical iOS, reactivated: true = app was re-fronted; re-describe. Fails if the device backend (simulator-server / emulator / Chromium CDP) is unreachable. Before tapping, take the coordinates from describe on every platform (on Chromium it walks the DOM). More information in argent-device-interact skill

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

Input Schema

NameRequiredDescriptionDefault
xYesHorizontal position: 0 = left edge, 1 = right edge. Range: 0 to 1.
yYesVertical position: 0 = top edge, 1 = bottom edge. Range: 0 to 1.
udidYesTarget device id from `list-devices` (iOS UDID, Android serial, or Chromium id).
clickCountNoNumber of taps/clicks dispatched as ONE gesture inside the OS double-tap window (2 = double-tap / double-click), which two separate tap calls cannot guarantee. On physical iOS, higher counts loop single taps, which a double-tap recognizer may pair. Default 1. Range: 1 to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / clickCount / description
      Previous value: -"Number of taps/clicks dispatched as ONE multi-tap gesture (2 = double-tap / double-click). The taps land inside the OS double-tap window; on Chromium each click carries an escalating CDP clickCount so dblclick actually fires; on physical iOS 2 is the native double-tap and higher counts land as separate taps. Default 1."New value: +"Number of taps/clicks dispatched as ONE gesture inside the OS double-tap window (2 = double-tap / double-click), which two separate tap calls cannot guarantee. On physical iOS, higher counts loop single taps, which a double-tap recognizer may pair. Default 1. Range: 1 to 10."
    • changedInput schema / properties / x / description
      Previous value: -"Normalized horizontal position 0.0–1.0 (left=0, right=1), not pixels"New value: +"Horizontal position: 0 = left edge, 1 = right edge. Range: 0 to 1."
    • addedInput schema / properties / x / maximum
      Added value: +1
    • addedInput schema / properties / x / minimum
      Added value: +0
    • changedInput schema / properties / y / description
      Previous value: -"Normalized vertical position 0.0–1.0 (top=0, bottom=1), not pixels"New value: +"Vertical position: 0 = top edge, 1 = bottom edge. Range: 0 to 1."
    • addedInput schema / properties / y / maximum
      Added value: +1
    • addedInput schema / properties / y / minimum
      Added value: +0
  2. Changed1 schema field changedv0.24.0
    • changedInput schema / properties / clickCount / description
      Previous value: -"Number of taps/clicks dispatched as ONE multi-tap gesture (2 = double-tap / double-click). The taps land inside the OS double-tap window; on Chromium each click carries an escalating CDP clickCount so dblclick actually fires. Default 1."New value: +"Number of taps/clicks dispatched as ONE multi-tap gesture (2 = double-tap / double-click). The taps land inside the OS double-tap window; on Chromium each click carries an escalating CDP clickCount so dblclick actually fires; on physical iOS 2 is the native double-tap and higher counts land as separate taps. Default 1."
  3. Changed1 schema field changedv0.16.0
    • addedInput schema / properties / clickCount
      Added value: +{
      +  "description": "Number of taps/clicks dispatched as ONE multi-tap gesture (2 = double-tap / double-click). The taps land inside the OS double-tap window; on Chromium each click carries an escalating CDP clickCount so dblclick actually fires. Default 1.",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  4. First observedv0.15.0

TDQS

A4.1/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 behavioral burden and does substantial work: it discloses the return value, the physical-iOS `reactivated` flag and required re-describe, and the failure mode when the backend (simulator-server / emulator / CDP) is unreachable. It does not mention side effects of tapping (navigation or app-state change) or latency, which keeps it below a 5.

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 coordinate space and event semantics are front-loaded in the first sentence, and each subsequent sentence supplies distinct information (return shape, platform flag, failure mode, prerequisite). It is dense and slightly sprawling across five sentences, but no sentence is filler.

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?

Given there is no output schema and no annotations, the description covers what an agent needs: coordinate convention, prerequisite discovery step, return payload, platform-specific flag, and failure conditions. Only the side-effect profile of a tap (it may trigger irreversible navigation or purchases) is left implicit.

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 x, y, udid, and clickCount are already fully documented in the schema, including the clickCount double-tap window explanation. The description reinforces the fractional coordinate space but adds no meaning beyond the schema, so the baseline of 3 applies.

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 description names a specific verb and resource ("Press the device screen") and defines the exact semantics: a Down event followed by an Up event at the same spot. By specifying that both events occur at one point, it implicitly and clearly separates this tool from drag/swipe/pinch siblings, and the coordinate space (fractions, not pixels) is stated up front.

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 gives an explicit use case ("Use when tapping a button, link, or any tappable element") and a concrete prerequisite: take coordinates from `describe` on every platform. What's missing is a negative rule — e.g., when to prefer gesture-custom for long-press or other gestures — so it stops short of a full when/when-not/alternatives statement.

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