Repository navigation
Add recents (incl. accessibility) and force_stop/restart_app MCP tools - #13
Merged
Merged
Conversation
…MCP tools Adds POST /agent/device (recents, force_stop, restart_app) behind the lease. Accessibility backend opens recents via GLOBAL_ACTION_RECENTS; force_stop and restart_app return adb_required without sending. Older companions return companion_outdated. CLI adb recents falls back to the companion without ADB. Refs #2
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Refs #2
What this adds on top of the existing
adb recents|force-stop|restart(bc7b028):POST /agent/devicedaemon endpoint, behind the lease:{"command":"recents"},{"command":"force_stop"|"restart_app","package":"..."}.input keyevent KEYCODE_APP_SWITCH,am force-stop, then a relaunch.recents(GLOBAL_ACTION_RECENTS). force_stop/restart_app returnadb_requiredwithoutcome:not_sent, because Android does not let an accessibility service stop another app.companion_outdated(not sent). Nothing gets mapped to home.phone_recents,phone_force_stop,phone_restart_app.android-use adb recentsfalls back to the companion when there is no ADB and the daemon backend is accessibility. force-stop/restart give a cleareradb_requiredmessage.PocketServicehandlesrecents.pressKeynow refuses keys other than back/home. The native whitelist allowsrecents.device_commands. README and the skill are updated.Not done, so this is Refs rather than Fixes:
recentsis not anact/flow step type. That needs a newActionin vendoredshared/control, which has to go through upstream iphone-use first.cargo testpasses.