技能标识:agent-wake
Wake an OpenClaw agent session from an external script or process. Use when a background task (Claude Code CLI, cron job, webhook, price alert, or any script) finishes and you want the agent to automatically receive a notification and respond in the correct Discord channel without manual prompting. Solves the problem of agents not knowing when async work completes.
通过网关HTTP API从任何外部进程唤醒你的OpenClaw代理。
scripts/agent-wake.py 使用 cron 工具调用 POST /tools/invoke,向代理会话中触发一个 wake 事件。代理将事件文本作为系统消息接收,并立即在正确的频道中做出响应。
bash
python agent-wake.py 任务完成 -- 简要总结 你的DISCORD频道_ID
参见 references/setup.md 了解:
完成后,运行:python /path/to/agent-wake.py 任务完成 -- 此处填写摘要 频道_ID
省略频道ID以唤醒主会话(响应将发送到默认频道)。
事件文本作为系统消息注入。请具体说明 -- 代理会根据你写的内容执行操作:
构建完成 -- 修复了3个错误,测试通过。将你的响应发送到Discord频道1475232925724315740...
scripts/agent-wake.py -- 将其复制到你的任务运行位置。除Python标准库外无需其他依赖。
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 agent-wake-1776284321 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-wake-1776284321 技能
skillhub install agent-wake-1776284321
文件大小: 4.39 KB | 发布时间: 2026-4-16 17:20