Skip to main content
prompt GP ChatGPT

phone_system_command — Claude Code prompt: what it does

The phone_system_command prompt for Claude Code and ChatGPT runs Android commands through the connected device shell. Screen input is restricted; use the phone tool for actions on Mika’s display.

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

What phone_system_command does

The prompt runs Android commands in the connected device shell with shell UID permissions, not in the Linux sandbox. Each command has a 10-second timeout and bounded output. MIKA_DISPLAY_ID identifies the task’s virtual display and belongs in commands that inject UI input.

For taps, typing, key presses, opening apps, and text sharing, the prompt directs the agent to the phone tool, which acts on Mika’s screen and checks the result. Shell input for these actions is refused after its first use, while sending text with am start and a SEND intent is always blocked. State and settings queries are unaffected. If a command fails, the prompt says not to try alternate forms. For Claude Code, place the file at .claude/commands/phone_system_command.md.

What it helps with

  • run an Android shell command with shell UID permissions
  • read device state or settings
  • route screen interactions to the phone tool

Example prompts for the agent

  • Read the current Android settings through the device shell.
  • Check the connected Android device’s state with a shell command.
  • Tap the button on Mika’s screen and verify the result with the phone tool.

How to install phone_system_command

Manually: put the files in place

.claude/commands/phone_system_command.md

Questions about phone_system_command

How do I install phone_system_command in Claude Code?

Place the prompt file at .claude/commands/phone_system_command.md.

What does phone_system_command do?

It runs Android commands through the connected device shell with shell UID permissions. State and settings queries can use the shell; screen interactions go to the phone tool.

What does phone_system_command need to run?

The task needs a connected Android shell helper. Commands run on the device, not in the Linux sandbox.

Source text

phone_system_command.md · Apache-2.0
Run an Android shell command through this task's connected shell helper, with shell UID permissions. This is the device shell, not the Linux sandbox. The command has a 10 second timeout and bounded output. The MIKA_DISPLAY_ID environment variable identifies this task's virtual display; include it in commands that inject UI input, for example input -d "$MIKA_DISPLAY_ID" tap 500 800. Do not use it to tap, type, press keys, open apps or share text when a phone tool can: those act on Mika's screen and check the result, shell input does not. The first such command runs with a hint naming the right tool; after that, such commands are refused (error use_phone_tool), and text shares (am start with a SEND intent) are always refused: use phone_share_text. Commands that read state or settings are not affected. If a command fails, do not keep trying variations of it.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Mobile →

From the same set132

The whole set →
intent_decision The intent_decision prompt for Claude Code and ChatGPT classifies what a user wants Mika to do in the current message. It separates discussion, reading, and requests to make changes. GP ChatGPT ★ 9,488repo stars locate locate — a prompt for Claude Code finds a specific element on a mobile phone screenshot and returns its coordinates. The task runs when an interface button or icon location needs to be identified from an image. GP ChatGPT ★ 9,488repo stars phone_set_wheel The phone_set_wheel Claude Code prompt sets values in wheel pickers for time, dates, numbers, or regions. It handles one wheel per call and reads back the result. GP ChatGPT ★ 9,488repo stars groups The groups prompt for Claude Code and ChatGPT loads tools on demand when interacting with phone apps, web pages, and the terminal. GP ChatGPT ★ 9,488repo stars phone_launch_app phone_launch_app — a prompt for Claude Code and ChatGPT launches an app on the phone virtual display by package name and waits for foreground focus. Handles app clones, cold restarts, and occupied task locks. GP ChatGPT ★ 9,488repo stars phone_run The phone_run Claude Code prompt runs a sequence of phone commands. It checks the current accessibility tree before each action, so clear screen conditions can guide the next step without another model decision. GP ChatGPT ★ 9,488repo stars hand_to_user hand_to_user — a prompt for Claude Code and ChatGPT that hands control of the screen to the user for manual steps tools cannot complete. GP ChatGPT ★ 9,488repo stars web_read_page The web_read_page Claude Code prompt extracts readable text from a web page, including content beyond the visible area. It can read the current tab or an address supplied in the request. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open