Skip to main content

current

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

Report the app currently in the foreground, as a package name or bundle id. These call app_current.

current​

def current() -> str

The package name or bundle id of the foreground app.

Costs no extra device call: it reads the hierarchy a snapshot fetches anyway. Use it to confirm a tap went where you expected.

Examples​

Ask which app is in front​

print(device.current())

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

com.android.settings