Skip to main content
prompt GP ChatGPT

phone_clear_text — Claude Code prompt to clear a field

The phone_clear_text Claude Code prompt clears text from a phone screen’s focused field. It can also target a field by ref and snapshotId.

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

What phone_clear_text does

The prompt clears the focused text field or the one identified by ref and snapshotId. It then reads the field back; readback and readbackMatches show whether it is empty.

If the screen’s element list cannot read the field, pass its point as x+y or use an @vN reference from phone_find_visually. The prompt taps the field, selects all text, and deletes it. With point_not_typed, the text at that point was left unchanged.

What it helps with

  • clear the focused text field
  • remove text from a field identified by ref and snapshotId
  • erase text in a field located by coordinates or an @vN reference
  • check the cleared field by reading its value back

Example prompts for the agent

  • Clear the focused text field on the phone screen.
  • Remove the text from the field identified by ref and snapshotId.
  • Clear the field at coordinates x+y.

How to install phone_clear_text

Manually: put the files in place

.claude/commands/phone_clear_text.md

Questions about phone_clear_text

How do I install phone_clear_text in Claude Code?

Place the prompt file at .claude/commands/phone_clear_text.md.

What does phone_clear_text do?

It clears the focused text field or a field identified by ref and snapshotId, then reads the value back to check the result.

How can it clear a field missing from the element list?

Pass the field’s x+y point or an @vN reference from phone_find_visually. The prompt taps the field, selects its text, and deletes it.

Source text

phone_clear_text.md · Apache-2.0
Clear the focused text field, or the one given by ref+snapshotId. The result's effect reads the field back (readback, readbackMatches) so you can see it is empty. On a screen the element list cannot read, give the box's point instead (x+y, or the @vN ref from phone_find_visually): it is tapped, then cleared with select-all and delete; point_not_typed means nothing changed there.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Mobile →

From the same set132

The whole set →
mika_open_file The mika_open_file Claude Code prompt opens workspace files in Mika’s built-in viewer. Show a report, screenshot, or downloaded document. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt sends an image to a vision model and reports its contents. It runs when a task requires reading text from an image or understanding what the image depicts. GP ChatGPT ★ 9,488repo stars phone_event phone_event — a prompt for Claude Code listens for accessibility window events on a task's virtual display or package notifications. The listener stays active only during the call and ignores past events. GP ChatGPT ★ 9,488repo stars scroll This Claude Code prompt scrolls a page or panel in a chosen direction. Ask it to move up, down, left, or right. GP ChatGPT ★ 9,488repo stars web_back The web_back Claude Code prompt returns the current browser tab to its previous page. If the address stays the same, the agent follows the page’s own back link. GP ChatGPT ★ 9,488repo stars settings_list The settings_list Claude Code prompt lists Mika settings that can be changed. It runs before settings_set when a user asks to change Mika’s behavior. GP ChatGPT ★ 9,488repo stars run_bundled_script The run_bundled_script Claude Code prompt runs scripts shipped with an app or website entry, or a skill. The agent gets each script’s source and path from knowledge_read or skill_read. GP ChatGPT ★ 9,488repo stars web_search The web_search Claude Code prompt searches through a user-configured endpoint. It runs before opening pages when result titles and snippets are enough to answer the query. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open