openclaw-control

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenClaw 控制技能

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
    - 会话信息
  • GET /openclaw/health
    - Health check
  • GET /openclaw/status
    - Running status
  • GET /openclaw/session
    - Session information

3. 管理 Gateway

3. Manage Gateway

  • POST /openclaw/gateway/start
    - 启动
  • POST /openclaw/gateway/stop
    - 停止
  • POST /openclaw/gateway/restart
    - 重启
  • GET /openclaw/gateway/status
    - 状态
  • POST /openclaw/gateway/start
    - Start
  • POST /openclaw/gateway/stop
    - Stop
  • POST /openclaw/gateway/restart
    - Restart
  • GET /openclaw/gateway/status
    - Status

4. 配置管理

4. Configuration Management

  • GET /openclaw/config
    - 获取配置
  • POST /openclaw/config/model
    - 设置模型
  • POST /openclaw/config/hooks
    - 配置 Hooks
  • GET /openclaw/config
    - Get configuration
  • POST /openclaw/config/model
    - Set model
  • POST /openclaw/config/hooks
    - Configure Hooks

使用流程

Usage Process

  1. 检查连接: 先调用健康检查确认 OpenClaw 可用
  2. 发送任务: 使用
    /openclaw/send
    发送消息
  3. 监控结果: 通过
    /openclaw/history
    查看执行结果
  1. Check Connection: First call the health check to confirm OpenClaw is available
  2. Send Task: Use
    /openclaw/send
    to send messages
  3. Monitor Results: View execution results via
    /openclaw/history

注意事项

Notes

  • OpenClaw 默认运行在
    http://127.0.0.1:18789
  • 需要配置 Hooks Token 才能发送消息
  • 建议使用免费的 GLM-4.7 模型进行测试
  • OpenClaw runs on
    http://127.0.0.1:18789
    by default
  • 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

调用
GET /openclaw/status
获取 OpenClaw 当前正在做什么。
Call
GET /openclaw/status
to see what OpenClaw is currently doing.