Mobilerun icon

Mobilerun

Access the MobileRun Cloud API

Manage Task → Run Task and Wait

AI-generated

Summary

Run Task and Wait

Inputs

  • deviceId (required) — Device ID to run the task on. Can be selected from the list or provided via an expression.
  • task (required) — The task description to execute on the device.

Output shape

Array of objects with fields taskId, finalStatus, isTerminal, waitedMs, streamEventCount, streamUrl, lastEventName, lastEventPayload, task, rawTaskResponse.

Returns detailed information about the task after it reaches a terminal status (completed, failed, cancelled) or times out.

Examples

Example 1: Running a simple UI test and waiting for completion

Set deviceId, task description, optionally adjust maxWaitSeconds, llmModel, and options such as accessibility, apps, credentials, etc.

Links

Discussion