{
  // 工具名称
  "name": "iot_control",
  // 工具标题(显示的中文名)
  "title": "物联网控制工具",
  // 工具描述
  "description": "物联网控制工具，支持设备控制、数据采集、事件触发等自动化功能。触发关键词：物联网控制、设备控制、智能家居、开灯关灯",
  // 工具示例
  "example": "开门，开灯，关灯，开闸放水，关闸，调节温度，调节湿度",
  // 工具分类
  "category": "物联网",
  // 工具分组
  "group": "web",
  // 工具类型, 默认为"function"
  "type": "function",
  // 工具主文件路径
  "main": "./index.js",
  // 工具参数，必要配置，让AI知道需要哪些参数
  "params": [
    {
      "name": "client_id",
      "description": "客户端ID",
      "example": "123456",
      "type": "string",
      "default": ""
    },
    {
      "name": "id",
      "type": "string",
      "description": "此次指令的唯一标识符",
      "example": "1234567890",
      "default": "",
      "required": true
    },
    {
      "name": "method",
      "description": "方法类型",
      "example": "control",
      "type": "string",
      "enum": [
        // 设备控制
        "control",
        // 数据采集
        "collect",
        // 事件触发
        "trigger"
      ],
      "required": true
    },
    {
      "name": "params",
      "description": "命令参数",
      "type": "object",
      "example": "{}",
      "props": [
        {
          "name": "direction",
          "description": "滚动方向",
          "type": "string",
          "enum": [
            // 上
            "up",
            // 下
            "down",
            // 左
            "left",
            // 右
            "right",
            // 前
            "front",
            // 后
            "back"
          ]
        },
        {
          "name": "switch",
          "description": "开关状态，常用于远程控制设备的开关状态",
          "example": "true",
          "type": "boolean",
          "default": false
        },
        {
          "name": "text",
          "description": "输入文本，常用于远程控制设备的文本输入",
          "example": "hello",
          "type": "string",
          "default": ""
        },
        {
          "name": "num",
          "description": "输入数字，常用于远程控制设备的数字输入",
          "example": "1",
          "type": "number",
          "default": 0
        }
      ]
    }
  ],
  // 结果，必要配置，让AI知道回复了什么
  "returns": [
    {
      "name": "timestamp",
      "type": "number",
      "description": "时间戳，单位为毫秒。为设备反馈的时间",
      "example": "1694502400000",
      "default": 0
    },
    {
      "name": "client_id",
      "type": "string",
      "description": "客户端ID",
      "example": "123456"
    },
    {
      "name": "method",
      "type": "string",
      "description": "方法类型",
      "example": "control"
    },
    {
      "name": "code",
      "type": "number",
      "description": "状态码",
      "example": "0"
    },
    {
      "name": "msg",
      "type": "string",
      "description": "提示信息",
      "example": "success"
    }
  ]
}
