ACTION_GLOBAL_KEY
Sends global Android key actions such as Back, Home, Recents, Notifications, Enter, and Delete via Shizuku/root or accessibility, returning key_success for automation workflows.
Instructions
全局按键:返回、桌面、最近任务、通知栏、回车等(需 Shizuku/root 或无障碍(见 key 说明))。输出:key_success。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 按键。back/home/recents/notifications:先 shell keyevent,失败退回无障碍;quick_settings/power_dialog:仅无障碍;screenshot_toggle/enter/delete/space/tab:仅 shell | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |