debug_failure
Run a Maestro flow and, when it fails, collect screens, logs, and UI elements to attribute the fault, returning a JSON and HTML diagnostic bundle.
Instructions
Run a flow and, when it fails, gather the evidence needed to attribute the fault.
Collects the screen before the run, Maestro's own capture at the moment of failure, the screen after, the focused window, the relevant slice of logcat, and the elements present at failure — then applies an attribution heuristic and writes a JSON plus HTML bundle.
Returns diagnosed: false when the flow passes, because there is nothing to
diagnose and inventing an analysis would be noise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Maestro -e variables for the flow. | |
| flow | Yes | Maestro flow file to run and diagnose. | |
| device | No | Device serial. Omit to take any single free device. | |
| package | No | App package to narrow logcat to, for example com.example.app. Omit to read the whole buffer. | |
| timeout | No | Flow timeout in seconds. |