{
  "name": "http_request",
  "title": "HTTP请求工具",
  "description": "发送HTTP请求（GET/POST/PUT/DELETE等），支持自定义请求头和Body。触发关键词：HTTP请求、发送请求、API调用、接口请求",
  "category": "网络请求",
  "group": "web",
  "type": "function",
  "main": "./index.js",
  "params": [
    {
      "name": "method",
      "description": "请求方式(method)，默认POST",
      "type": "string",
      "default": "POST",
      "enum": [
        "POST",
        "GET"
      ]
    },
    {
      "name": "url",
      "description": "请求URL",
      "type": "string",
      "required": true
    },
    {
      "name": "body",
      "description": "POST请求参数体",
      "type": "string"
    },
    {
      "name": "headers",
      "description": "请求协议头",
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "请求头键"
        },
        "value": {
          "type": "string",
          "description": "请求头值"
        }
      }
    },
    {
      "name": "cookies",
      "description": "Cookie，多个Cookie用分号隔开，每个Cookie用等号隔开",
      "type": "string"
    },
    {
      "name": "files",
      "description": "上传文件时的文件路径",
      "type": "array",
      "items": {
        "type": "string",
        "description": "文件路径"
      }
    }
  ],
  "returns": [
    {
      "name": "code",
      "type": "number",
      "description": "执行状态码，0表示成功"
    },
    {
      "name": "msg",
      "type": "string",
      "description": "执行状态成功时为空，失败时为错误信息"
    },
    {
      "name": "body",
      "type": "string",
      "description": "响应体内容"
    },
    {
      "name": "headers",
      "type": "string",
      "description": "响应头"
    },
    {
      "name": "cookies",
      "type": "string",
      "description": "响应Cookie"
    },
    {
      "name": "status",
      "type": "number",
      "description": "响应状态码"
    },
    {
      "name": "files",
      "type": "array",
      "items": {
        "type": "string",
        "description": "下载文件时的文件路径"
      }
    }
  ]
}