Skip to main content

text

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read text from the screen. These call app_text.

text​

text(target?: string): Promise<string>

Examples​

Read everything on screen​

const text = await device.text()

The same call from the command line, mobium text, printed on an Android 15 emulator:

Profile picture, double tap to open Google Account
Settings
Search settings
Network & internet
Mobile, Wi‑Fi, hotspot
Connected devices
Bluetooth, pairing
Apps
Assistant, recent apps, default apps
Notifications
Notification history, conversations
Battery
100%
Storage
51% used - 7.85 GB free
Sound & vibration
Volume, haptics, Do Not Disturb

mobium text on an Android 15 emulator

mobium text on an Android 15 emulator

Read one element's text​

const title = await device.text('testid=title')