Skip to main content
prompt GP ChatGPT

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

The phone_query Claude Code prompt finds controls in an Android accessibility tree. It filters nodes by text, resource ID, or role and returns refs for later actions.

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/phone_query.md
Open on GitHub

What phone_query does

phone_query searches the current Android accessibility tree for controls matching text, a resource ID, or a role. Results include matching nodes, parent labels, bounds, and refs that can be used in later actions. Filters can be combined.

With no filters, it returns the first nodes up to the limit. Each result includes a snapshotId, which is paired with a node ref for a subsequent action. The prompt reads tree text only; it does not capture a screenshot. Request a screenshot if the tree lacks enough detail.

What it helps with

  • find an Android control by its text
  • filter accessibility nodes by resource ID or role
  • get a node ref for a later action

Example prompts for the agent

  • Find the “Continue” button in the Android accessibility tree.
  • Find nodes with resource ID com.example:id/submit.
  • Show nodes whose role is a text input.

How to install phone_query

Manually: put the files in place

.claude/commands/phone_query.md

Questions about phone_query

How do I install phone_query in Claude Code?

Place phone_query.md in the project’s .claude/commands/ directory.

What does phone_query do?

It searches the Android accessibility tree and returns matching nodes with parent labels, bounds, and refs for later actions.

Does phone_query capture a screenshot?

No. It reads text from the accessibility tree. Request a screenshot if the tree does not provide enough detail.

Source text

phone_query.md · Apache-2.0
Find controls in the current Android accessibility tree by text, resource ID, or role. Returns matching nodes with their parent labels, bounds, and usable refs. You may combine filters; with no filter it lists the first nodes up to limit. This reads text only and does not capture a screenshot. Use the returned snapshotId together with a ref for a later action. If the tree lacks enough information, request a screenshot.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Mobile →
Sms Gateway using your phone sms8 Sms Gateway using your phone connects real Android phones via SMS8.io to AI coding assistants for sending SMS, handling webhooks, and extracting OTP codes during automated flows. CX Codex +1 1,800installs open-autoglm-phone-agent reason-machines open-autoglm-phone-agent — a skill for Claude Code, Codex, Cursor and other IDEs that teaches your agent to set up Open-AutoGLM, an AI phone agent framework controlling Android, HarmonyOS NEXT and iOS via the AutoGLM vision-language model. CX Codex +1 1,400installs Buddy phone tools ghorbelhamdi Buddy phone tools is an MCP server for Claude Code that connects an agent to an Android phone through Buddy. It runs when the agent needs to inspect the display or control an app. CX Codex +1 ★ 314repo stars phone-harness DuskBotAI phone-harness is a Claude Code skill that automates Android device control via USB debugging. It performs taps, text entry, and screenshots within mobile apps. CX Codex +1 ★ 567repo stars capacitor-accessibility Cap-go capacitor-accessibility — a skill that walks an AI agent through accessibility in Capacitor apps: VoiceOver, TalkBack, Dynamic Type, Switch Control and Android font scale. CX Codex +1 1,300installs ui-mobile alinaqi ui-mobile — a skill for Claude Code, Cursor, Codex and other agents that enforces mobile UI standards: touch targets, contrast ratios, accessibility labels. Activates automatically on .tsx, .jsx, .dart and files inside ios/ and android/. CX Codex +1 1,200installs

From the same set132

The whole set →
web_read_page web_read_page is a Claude Code prompt that reads the text of a web page. Give it a URL to use a temporary background tab, or leave the URL out to read the current tab. GP ChatGPT ★ 9,488repo stars profile_edit The profile_edit prompt for Claude Code and ChatGPT edits one profile sentence after an explicit user request. Changes take effect in the next run. GP ChatGPT ★ 9,488repo stars share_file The share_file Claude Code prompt moves a file from /workspace to the phone’s Download/Mika folder and presents it as a file card. Exported images can also go back to an image-capable messaging conversation when the task ends. GP ChatGPT ★ 9,488repo stars web_wait_for The web_wait_for Claude Code prompt waits for a change on the current tab. It checks page text, the URL, or network activity for a set time. GP ChatGPT ★ 9,488repo stars describe The describe Claude Code prompt asks a vision model to explain the full screen. State your next task to get page details, control coordinates, obstacles, and task hints. GP ChatGPT ★ 9,488repo stars phone_list_apps phone_list_apps — a prompt for Claude Code and ChatGPT that retrieves installed mobile apps as package names and labels. Handles profile clones and app restrictions directly. GP ChatGPT ★ 9,488repo stars view_user_screen The view_user_screen Claude Code prompt looks up a screen shared by the user. It returns details from the captured image and can answer questions about visual elements. GP ChatGPT ★ 9,488repo stars mika_status The mika_status Claude Code prompt reads Mika’s current state and configuration. Use it to check the app version, available features, or what Mika is working on. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open