openclaw-control
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenClaw 控制技能
OpenClaw Control Skill
本技能让你能够控制和管理 OpenClaw AI 助手。
This skill allows you to control and manage the OpenClaw AI Assistant.
核心能力
Core Capabilities
1. 发送消息给 OpenClaw
1. Send Messages to OpenClaw
通过 Naga 的 Agent Server API 向 OpenClaw 发送任务:
POST /openclaw/send
{
"message": "你的消息内容",
"wake_mode": "now" // 立即执行
}Send tasks to OpenClaw via Naga's Agent Server API:
POST /openclaw/send
{
"message": "Your message content",
"wake_mode": "now" // Execute immediately
}2. 检查 OpenClaw 状态
2. Check OpenClaw Status
- - 健康检查
GET /openclaw/health - - 运行状态
GET /openclaw/status - - 会话信息
GET /openclaw/session
- - Health check
GET /openclaw/health - - Running status
GET /openclaw/status - - Session information
GET /openclaw/session
3. 管理 Gateway
3. Manage Gateway
- - 启动
POST /openclaw/gateway/start - - 停止
POST /openclaw/gateway/stop - - 重启
POST /openclaw/gateway/restart - - 状态
GET /openclaw/gateway/status
- - Start
POST /openclaw/gateway/start - - Stop
POST /openclaw/gateway/stop - - Restart
POST /openclaw/gateway/restart - - Status
GET /openclaw/gateway/status
4. 配置管理
4. Configuration Management
- - 获取配置
GET /openclaw/config - - 设置模型
POST /openclaw/config/model - - 配置 Hooks
POST /openclaw/config/hooks
- - Get configuration
GET /openclaw/config - - Set model
POST /openclaw/config/model - - Configure Hooks
POST /openclaw/config/hooks
使用流程
Usage Process
- 检查连接: 先调用健康检查确认 OpenClaw 可用
- 发送任务: 使用 发送消息
/openclaw/send - 监控结果: 通过 查看执行结果
/openclaw/history
- Check Connection: First call the health check to confirm OpenClaw is available
- Send Task: Use to send messages
/openclaw/send - Monitor Results: View execution results via
/openclaw/history
注意事项
Notes
- OpenClaw 默认运行在
http://127.0.0.1:18789 - 需要配置 Hooks Token 才能发送消息
- 建议使用免费的 GLM-4.7 模型进行测试
- OpenClaw runs on by default
http://127.0.0.1:18789 - Hooks Token is required to send messages
- It is recommended to use the free GLM-4.7 model for testing
示例
Examples
让 OpenClaw 执行任务
Let OpenClaw Execute a Task
json
{
"message": "帮我整理桌面上的文件,按类型分类",
"wake_mode": "now"
}json
{
"message": "Help me organize the files on my desktop by type",
"wake_mode": "now"
}查询当前状态
Query Current Status
调用 获取 OpenClaw 当前正在做什么。
GET /openclaw/statusCall to see what OpenClaw is currently doing.
GET /openclaw/status