Preferred flow:
- Run
./tools/android screenshot --json. - If the user asked for visual analysis, inspect the saved image with the agent's local image-view capability if available.
- If you need precise element data, also run
./tools/android ui dump --json. - Report what is visible and answer the user's question.
If the command layer fails for screenshot capture, fall back to raw adb only as a last resort.


