Text
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Read text from the screen. These call app_text.
Text
func (d *Device) Text(ctx context.Context, target string) (string, error)
Text reads everything on screen. Pass a ref or locator to read one element instead, or "" for the whole screen.
Examples
Read everything on screen
text, err := dev.Text(ctx, "")
if err != nil {
return err
}
fmt.Println(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
title, err := dev.Text(ctx, "testid=title")
if err != nil {
return err
}
fmt.Println(title)