ACTION_LAUNCH_APP
Launch an Android app or open a specific system settings page by package name, Activity, or allowed intent. Returns launch status and overlay permission details for automation workflows.
Instructions
打开应用,或打开系统设置的某一页。输出:launch_success, launch_error, launch_has_overlay, launch_package。Android 10+ 后台启动可能被系统静默拦截而 launch_success 仍为 true;launch_has_overlay 表示是否有悬浮窗权限(后台启动的豁免条件之一)。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| activity | No | 可选:完整 Activity 类名,直接启动该页面 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| package_name | No | 应用包名,支持 ${var};不给 intent_action 时必填 | |
| intent_action | No | 打开系统设置页,只允许 android.settings.*(如 android.settings.BLUETOOTH_SETTINGS)或 android.intent.action.POWER_USAGE_SUMMARY;给了就忽略 package_name | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |