Skip to main content
prompt GP ChatGPT

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

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

What 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.md

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

Similar prompts

All prompts for Mobile →

From the same set132

The whole set →
phone_wait The phone_wait Claude Code prompt waits for text, an activity screen, or a settled phone display. Its Android port responds to accessibility events. GP ChatGPT ★ 9,488repo stars phone_scroll The phone_scroll Claude Code prompt scrolls an Android app screen. Set a direction, gesture amount, or scroll region. GP ChatGPT ★ 9,488repo stars phone_open_link The phone_open_link Claude Code prompt opens an Android page on the virtual display from a settings action or URI. Request a target page directly instead of navigating through the app. GP ChatGPT ★ 9,488repo stars phone_observe The phone_observe Claude Code prompt reads a phone’s virtual display and its accessibility tree. The agent can locate a control or dialog before tapping it. GP ChatGPT ★ 9,488repo stars run_command This Claude Code prompt runs shell commands in a Linux sandbox. It can also route calls to the current task’s phone tools through mika phone. GP ChatGPT ★ 9,488repo stars web_capture The web_capture Claude Code prompt lists XHR/fetch responses received by the current tab. It helps inspect data a page loaded through an API. GP ChatGPT ★ 9,488repo stars swipe This Claude Code prompt describes swipes between two interface points. It covers page scrolling, carousel gestures, and how to read the action result. GP ChatGPT ★ 9,488repo stars web_navigate web_navigate — a Claude Code prompt for opening HTTP and HTTPS addresses in Mika's built-in browser. Initiates web navigation before screen tools take over. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open