ACTION_FLASHLIGHT
Turn the Android device flashlight on, off, or toggle it in automation workflows; track on/off state for reliable toggling when no direct status API is available.
Instructions
手电筒开关。输出:flashlight_success, flashlight_on。系统没有同步查询手电状态的 API:toggle 按本次运行记录的 flashlight_on 取反,没记录时一律打开。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | on/off/toggle | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |