MCPcopy Create free account
hub / github.com/zai-org/Open-AutoGLM / _handle_launch

Method _handle_launch

phone_agent/actions/handler_ios.py:126–137  ·  view source on GitHub ↗

Handle app launch action.

(self, action: dict, width: int, height: int)

Source from the content-addressed store, hash-verified

124 return x, y
125
126 def _handle_launch(self, action: dict, width: int, height: int) -> ActionResult:
127 """Handle app launch action."""
128 app_name = action.get("app")
129 if not app_name:
130 return ActionResult(False, False, "No app name specified")
131
132 success = launch_app(
133 app_name, wda_url=self.wda_url, session_id=self.session_id
134 )
135 if success:
136 return ActionResult(True, False)
137 return ActionResult(False, False, f"App not found: {app_name}")
138
139 def _handle_tap(self, action: dict, width: int, height: int) -> ActionResult:
140 """Handle tap action."""

Callers

nothing calls this directly

Calls 2

launch_appFunction · 0.90
ActionResultClass · 0.70

Tested by

no test coverage detected