Skip to main content
prompt GP ChatGPT

tap — Claude Code prompt: what it does, how to install

This prompt for Claude Code and ChatGPT taps interface elements by reference, name, or coordinates.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/tap.md
Open on GitHub

What tap does

The tap prompt simulates clicks on UI elements using a snapshot reference, exact name with role, or normalized coordinates. It matches names in order of exact match, prefix match, and substring match for tappable items. When multiple elements match, it returns a selection list, and if nothing matches, it requires running an observation step first.

The action result reports the interface state as done, small_change, no_effect, or place_changed. Set clicks=2 for double taps, specify the target for coordinate taps, and avoid repeating identical coordinate clicks without interface changes.

What it helps with

  • tap interface elements by reference or snapshot id
  • click elements by exact name and role
  • tap normalized x and y coordinates on the screen
  • perform double taps with clicks equal to two

Example prompts for the agent

  • tap the Save button by its name
  • tap element @e1 from the screen snapshot
  • double tap the zoom icon with clicks=2

How to install tap

Manually: put the files in place

.claude/commands/tap.md

Questions about tap

How to install tap in Claude Code?

Create a file named .claude/commands/tap.md in your project directory.

What does tap do?

It taps screen interface elements by reference, name, or coordinates and reports the resulting interface state.

What parameters does tap accept?

It accepts snapshot references @eN and @vN, element names, x and y coordinates, target descriptions, and clicks=2 for double taps.

Source text

tap.md · Apache-2.0
Tap an element with ref plus snapshotId (@eN from {{observe}}/{{list_elements}}, or @vN from {{find_visually}}), or name the element in element (its text or accessible name exactly as listed, plus role if several share it) when you have no fresh ref, or tap normalized x/y coordinates from the latest screen. element is matched against the screen as it is now and must hit exactly one element, preferring ones that can be tapped. A full-name match is used first; failing that, a name that starts with it, then (for tappable elements only) one that contains it, and then the result shows resolvedFrom and matched so you can check it was the one you meant. If several match, the result lists them (ref, place, nearby text) to pick from; if none, observe first. For a coordinate tap, say in target what you are tapping. Do not repeat an unchanged coordinate tap. clicks=2 double-taps (for things that open or zoom only on a double tap). The result's effect says what the action did to the interface: done (a clear change), small_change (only focus, a toggle or one or two elements changed, or it may still be loading: check it), no_effect (nothing in the interface changed: try another way instead of repeating) or place_changed (now somewhere else, given in effect.to).

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Frontend and UI →

From the same set132

The whole set →
intent_gate The intent_gate prompt for Claude Code judges the user's current message to determine their intent. The template classifies incoming requests into discussion, reading, or action categories. GP ChatGPT ★ 9,488repo stars identity The identity Claude Code prompt gives Mika the role of a personal assistant on a phone. It sorts current requests from conversation, acts in the user’s apps, then reports what happened. GP ChatGPT ★ 9,488repo stars device_files device_files — a prompt for Claude Code and ChatGPT coordinates how the model locates and copies local files through a device bridge. Runs when an agent needs to retrieve a file from the user machine. GP ChatGPT ★ 9,488repo stars root This Claude Code prompt sets rules for running Android shell commands as root. It applies to tasks involving system files or another app’s private data. GP ChatGPT ★ 9,488repo stars web_interact The web_interact prompt for Claude Code and ChatGPT adds mouse and keyboard actions beyond web_tap and web_type_text. Use it to open hover menus, drag items, choose native dropdown options, or handle page dialogs. GP ChatGPT ★ 9,488repo stars web_evaluate_js web_evaluate_js — a prompt for Claude Code runs JavaScript code on the current web page and returns the collected data as JSON. GP ChatGPT ★ 9,488repo stars outcome_judge The outcome_judge Claude Code prompt checks whether an assistant’s final reply fulfils the user’s request. It labels the result done, partial, or not_possible. GP ChatGPT ★ 9,488repo stars describe Prompt for Claude Code and ChatGPT that describes phone screenshots for an assistant without visual input. Converts mobile UI layouts into structured text with normalised tap coordinates. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open