phone_share_text — Claude Code prompt: what it does, how to install
phone_share_text — a prompt for Claude Code and ChatGPT sends text into an installed Android app by package name. It opens the target app share screen on the phone virtual display with the text prefilled.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/phone_share_text.mdWhat phone_share_text does
The prompt triggers an Android text share intent to an app by its exact package name. It opens the share interface on the phone's virtual display with the text already filled in. This helps when an app screen cannot be read or does not accept direct typing.
The prompt does not send the message on its own. You pick the recipient on screen and tap confirm manually. If the target app cannot accept shared text, the prompt returns cannot_share, meaning you must open the app and type directly. When Android asks which target or cloned app to choose, it returns ok:true with the prompt on screen so you can make the choice without triggering a second share.
What it helps with
- send text to an Android app using its package name
- paste content into screens that block direct typing
- trigger the Android share dialog on a virtual display
Example prompts for the agent
- Share the text "Meeting at 3 PM" to
org.telegram.messenger - Send the contents of
summary.txttocom.google.android.keep
How to install phone_share_text
Manually: put the files in place
.claude/commands/phone_share_text.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about phone_share_text
How to install phone_share_text in Claude Code?
Save the prompt file to .claude/commands/phone_share_text.md.
What does phone_share_text do?
It launches the native Android share interface for a target package and inserts the specified text.
Does phone_share_text send messages automatically?
No, it only opens the share screen. You must pick the target recipient and tap send manually on the virtual display.
Source text
phone_share_text.md · Apache-2.0
Share a piece of text to an installed app by exact package name: opens that app's share screen on the phone's virtual display with the text filled in (an Android text share). Use it to send or post text into an app (a message to a contact, a note), especially when the app's screen cannot be read or typed into. It does not send anything: on the share screen, pick the recipient or destination and tap its send or confirm button yourself, then check the result. If the app cannot receive shared text, it returns cannot_share: open the app and type instead. If the system asks which one to use (an app installed twice, or several share targets), it returns ok:true with that question on screen: pick the option the task needs, and do not share again.
© wangzan101 · Apache-2.0 · wangzan101/Mika