Repository navigation
feat(android): let agents swipe - #396
Merged
Merged
Conversation
The android_swipe MCP tool and the android swipe CLI command run adb shell input swipe with argv arrays. Coordinates are bounded to 0-16383 pixels and the optional duration to 0-10000 ms. Evidence records both endpoints. Closes #231
3 tasks done
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Android lab had
android_tapbut no swipe, so agents could not scroll lists or dismiss sheets with a gesture.This adds an
android_swipeMCP tool and apickforge-lab android swipecommand. Both runadb shell input swipe x1 y1 x2 y2 [durationMs]with argv arrays, validate and bound every value, and record both endpoints in evidence. A swipe counts as an interaction when evidence decides a run's outcome.Proof: fake adb tests cover the exact argv and rejections, and a live swipe on an emulator scrolled a Compose list. The full suite passes (3364 tests).
Stacked on #395; this PR is retargeted to
mainbefore #395 merges.Sol review: round 1 found that a swipe did not count as an interaction for outcomes (should), round 2 approved.
Closes #231
packages/android,packages/mcp-serverandpackages/cli; live CLI swipe-s emulator-5555 shell input swipe 160 500 150 120 400; the live swipe moved a list row from y=264 to y=168~/.pickforge/investigations/231/,~/.pickforge/investigations/qa-351-231/shots/j6-montage.png~/.pickforge/investigations/qa-351-231/cli-invalid.txtpackages/core/test/evidence-outcome.test.ts~/.pickforge/investigations/qa-351-231/shots/