phone_collect — Claude Code prompt: what it does, how to install
phone_collect — a prompt for Claude Code and ChatGPT reads text across consecutive Android app screens with local scrolling. It gathers long chat logs, feeds, and lists while merging overlapping lines.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/phone_collect.mdWhat phone_collect does
The prompt extracts text across consecutive Android screens by scrolling locally between reads. It merges overlapping lines across screen boundaries and follows the direction toward target content. The device screen physically shifts during collection, recording each scroll movement as an independent action.
Execution stops when no new text appears twice, the active application switches, an action fails, or a resource limit is hit. The fromY and toY coordinates confine the active scrolling area to skip static headers and bottom navigation bars.
If a resource limit stops the run, examine the extracted output and trigger another invocation to resume.
What it helps with
- collect chat history from an Android app
- scrape long lists and feeds across scrolling screens
- ignore fixed headers and bottom navigation bars
- deduplicate overlapping text lines between screen swipes
Example prompts for the agent
- Collect the chat history from the active Android app by scrolling down
- Extract the list feed, setting fromY and toY to ignore the header and nav bar
- Resume text collection from the current screen after hitting the limit
How to install phone_collect
Manually: put the files in place
.claude/commands/phone_collect.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about phone_collect
How to install phone_collect in Claude Code?
Save the command file to .claude/commands/phone_collect.md in your project directory.
When does the tool stop scrolling?
Collection stops if the app changes, an action fails, a resource limit is reached, or no new text appears across two consecutive reads.
How do you exclude fixed headers and navigation menus?
Set the fromY and toY boundaries to define the active scroll window and ignore static UI elements.
Source text
phone_collect.md · Apache-2.0
Read text across successive screens in the current Android app, scrolling locally between reads. Use for chat history, feeds, lists, and other long content. Choose the direction toward content you need. The tool merges overlapping lines and stops when no new text appears twice, the app changes, an action fails, or a resource limit is reached. Set fromY and toY to exclude fixed headers or bottom navigation when needed. Inspect the collected text and continue with another call if stopped by a limit. Each scroll is recorded as its own action. The app screen moves while collecting.
© wangzan101 · Apache-2.0 · wangzan101/Mika