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
.claude/commands/phone_clear_text.mdWhat 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
refandsnapshotId - erase text in a field located by coordinates or an
@vNreference - 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
refandsnapshotId. - Clear the field at coordinates
x+y.
How to install phone_clear_text
Manually: put the files in place
.claude/commands/phone_clear_text.mdHow to use
Paste the text at the start of a chat or into project instructions
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