text
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Read text from the screen. These call app_text.
text
public String text()
public String text(String target)
Everything readable on screen.
@return everything readable on screen
The text of one element, by ref or locator.
@param target the element: a ref or a locator @return the element's text
Examples
Read everything on screen
String screen = 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
Read one element's text
String title = device.text("testid=title");
More examples
Wait until an element's text contains a string
device.waitFor("testid=status", WaitFor.text("Done"));