Skip to main content
prompt GP ChatGPT

phone_event — Claude Code prompt: what it does, how to install

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.

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

What phone_event does

The prompt tracks window and content accessibility events on the task's virtual display. It also captures device notifications from a specified package, returning the package identifier along with short event text.

Two operational modes handle incoming updates. The once mode waits for and returns the single next event, while watch continuously gathers multiple events across the timeout period without subscription gaps.

The event listener operates strictly for the duration of the command call. Because it does not run in the background, events triggered before invocation are lost.

What it helps with

  • capture the next accessibility window event on a virtual display
  • collect multiple UI events across a timeout window without gaps
  • filter device notifications from a specific package
  • extract package identifiers and short text snippets from events

Example prompts for the agent

  • Run phone_event in once mode to wait for the next screen update.
  • Use phone_event watch on package com.android.settings to capture incoming notifications.

How to install phone_event

Manually: put the files in place

.claude/commands/phone_event.md

Questions about phone_event

How to install phone_event in Claude Code?

Save the prompt file to .claude/commands/phone_event.md in your project.

What is the difference between once and watch in phone_event?

The once mode completes after retrieving the next single event. The watch mode collects all events throughout the timeout without subscription gaps.

Does phone_event return past notifications?

No. The listener exists only while the call executes, so events triggered prior to invocation are not captured.

Source text

phone_event.md · Apache-2.0
Wait for accessibility window/content events on this task's virtual display, or for device notifications from an optional package. once returns the next event; watch collects multiple events during the timeout without gaps between subscriptions. Returns each event's package and short text. The listener exists only during this call; it does not return past events.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Mobile →

From the same set132

The whole set →
view_image The view_image Claude Code prompt answers questions about an image using only visible details. It describes the scene and transcribes legible text. GP ChatGPT ★ 9,488repo stars list_elements The list_elements Claude Code prompt turns the current screen into a text list instead of a screenshot. Each item gets a reference for later actions. GP ChatGPT ★ 9,488repo stars 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 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 phone_clear_text 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. 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

Project sponsors

Companies that keep this analytics open