phone_scroll — Claude Code prompt for Android scrolling
The phone_scroll Claude Code prompt scrolls an Android app screen. Set a direction, gesture amount, or scroll region.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/phone_scroll.mdWhat phone_scroll does
The prompt scrolls content in an Android app. down reveals content further down the page, while up reveals content above; for a gesture, the finger moves the other way.
With the default amount and no coordinates, it first uses a scrollable accessibility node. If that is unavailable, it falls back to a gesture. Set an amount from 1 to 20 or provide x/y coordinates for a specific gesture or region. Repeating a scroll is valid when it reveals new content.
Stop at the end only after the page state confirms there is nothing new. An effect.kind value of no_effect together with atEnd can signal this state.
What it helps with
- scroll an Android screen down to reveal more content
- move back to content higher on the page
- set a gesture amount from 1 to 20
- scroll a specific region using
x/ycoordinates - detect the end of a page from its state
Example prompts for the agent
- Scroll the Android app down to reveal more content.
- Scroll the page up by an amount of 3.
- Scroll the region at coordinates
x/y.
How to install phone_scroll
Manually: put the files in place
.claude/commands/phone_scroll.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about phone_scroll
How do I install phone_scroll in Claude Code?
Add the prompt file at .claude/commands/phone_scroll.md.
What does phone_scroll do?
It scrolls an Android app screen up or down. With the default amount and no coordinates, it tries an accessibility node first, then uses a gesture if that node is unavailable.
How do I set the direction and amount in phone_scroll?
Use down to reveal content lower on the page or up to reveal content above. For a specific scroll, set an amount from 1 to 20 or provide x/y coordinates.
Source text
phone_scroll.md · Apache-2.0
Scroll in the Android app. direction=down shows content further down (the finger moves up for a gesture); up shows content further up (the finger moves down). With the default amount and no x/y, Mika first asks the scrollable accessibility node to move and falls back to a gesture if no such node is available. Give another amount (1-20) or x/y when you need a specific gesture or scroll region. Repeating a scroll can be correct when it reveals new content. Stop at the end only when the page state confirms there is no new content; effect.kind no_effect with atEnd is one signal.
© wangzan101 · Apache-2.0 · wangzan101/Mika