ACTION_GET_APP_INFO
Reads the foreground Android app's package name and Activity via accessibility, returning them as workflow variables so automations can branch on the active screen.
Instructions
读取前台应用包名和 Activity(经无障碍)(需无障碍)。输出:current_app, current_activity。无障碍未开时写 unknown;需要 shell 兜底请用 ACTION_FOREGROUND_APP。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| output_var | No | 包名存到的变量名(默认 current_app) | |
| activity_var | No | Activity 类名存到的变量名(默认 current_activity) | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |