assistant
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Ask the platform's assistant in typed text, and report what came back: Gemini or Google Assistant on Android, opened with the assist key, its field typed into and sent; Siri on a real iPhone. These call app_assistant.
assistant
assistant(request: string, options?: { app?: string; timeout?: number }): Promise<Data>
Ask the platform's assistant in typed text; app is the app expected to come forward.
Examples
Ask the assistant to open an app, and check that it came forward
const got = await device.assistant('Open Clock', { app: 'com.google.android.deskclock' })
if (!got.reached) throw new Error(`in front: ${got.front}`)
The same call from the command line, mobium assistant "Open Clock" --app com.google.android.deskclock, printed on an Android 15 emulator:
asked Google Assistant (typed, not spoken): "Open Clock"
it showed no text a screen read can see
in front: com.google.android.deskclock
com.google.android.deskclock came forward

mobium assistant "Open Clock" --app com.google.android.deskclock on an Android 15 emulator
Ask a question, and read the answer it showed
const got = await device.assistant('What is 15 times 3', { timeout: 20 })
console.log(got.answer)