openclaw system
Gateway 的系统级辅助工具:将系统事件加入队列、控制心跳以及查看在线状态。
常用命令
bash
openclaw system event --text "Check for urgent follow-ups" --mode now
openclaw system heartbeat enable
openclaw system heartbeat last
openclaw system presencesystem event
在 main 会话上将系统事件加入队列。下一次心跳将以提示中的 System: 行形式注入该事件。使用 --mode now 可立即触发心跳;next-heartbeat 则等待下一个计划的时间点。
标志:
--text <text>:必填的系统事件文本。--mode <mode>:now或next-heartbeat(默认)。--json:机器可读输出。
system heartbeat last|enable|disable
心跳控制:
last:显示最后一次心跳事件。enable:重新开启心跳(如果已禁用,请使用此选项)。disable:暂停心跳。
标志:
--json:机器可读输出。
system presence
列出 Gateway 当前已知的系统在线状态条目(节点、实例和类似的状态行)。
标志:
--json:机器可读输出。
注意事项
- 需要一个可通过当前配置(本地或远程)访问的运行中的 Gateway。
- 系统事件是临时的,不会在重启后保留。