umouse_wait_events
Waits for new uMouse device events such as speech captures, key presses, or connections, returning immediately when a match arrives and an empty timed-out result when none occur.
Instructions
长轮询等待新设备事件:有匹配立即返回,超时返回空(timedOut:true)。等待用户物理操作的标准工具。推荐范式:等用户语音输入 → types:["speechCaptured"](用户按住语音键说话、松开后事件自带 WAV 路径 payload.path,直接取用,无需编排录音);等按键 → types:["keyEvent"](payload={key: speech|translation|m|ai|capture|raw, action: down|up|hold|click, index})。可用 type:connected | disconnected | keyEvent | deviceInfo | dpiChanged | meetingCreated | meetingDestroyed(origin=device-frame 设备确认 / transport-down 异常结束) | meetingBusy | meetingCreateFailed | audioSegmentComplete(本段音频已全部交付:segment 采集代次 + reason) | queueOverflow | warning | lavalierMicStatus | lavalierMicBattery | speechCaptured(server 生成:语音键自动录音完成,payload 含 WAV 路径) | speechTranscribed(转写状态已落盘,payload 含 eventId/status;全文用 umouse_voice_inbox) | sleepReset(120 秒重置睡眠计时,写入与 ACK 独立记录) | voiceSession / voiceBusy / voiceUnavailable / voiceCloseUnconfirmed / voiceKeyHoldIsolation(v2 语音编排会话事件)。宿主超时提示:宿主对工具调用本身可能设有更短超时——单次 timeout_ms 建议不超过 25000,更久等待以返回的 nextSince 游标分轮续等。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | 上次返回的 nextSince | |
| types | No | 按 type 过滤 | |
| timeout_ms | No | 最长等待毫秒数(上限 30000) |