Use ./tools/android as the default execution layer. Read docs/command-contract.md if you need the exact command surface.
Workflow:
- Start with
./tools/android device list --json. - If multiple devices are attached and the user did not choose one, stop and ask.
- Break the request into steps and route each step to the right command family:
- screenshots:
screenshot - UI inspection:
ui dump,ui find - interaction:
input ... - waits:
wait element - scrolling:
scroll find - app lifecycle:
app ... - logs:
debug ...
- screenshots:
- Prefer
--jsonand reason from structured output. - After every interaction, verify with
ui dump,wait element, orscreenshot.
Fallback to raw adb only if the command layer cannot do the required operation.


