{
  "name": "fetch_html",
  "title": "页面内容拾取",
  "description": "从HTML字符串中提取指定内容，支持CSS选择器。触发关键词：提取HTML、HTML解析、页面内容提取、抓取页面",
  "category": "网络爬虫",
  "group": "web",
  "type": "function",
  "main": "./index.js",
  "params": [
    {
      "name": "html",
      "description": "HTML内容字符串",
      "type": "string"
    },
    {
      "name": "jq_express",
      "description": "jq语法提取内容的表达式",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "prop_name": {
            "type": "string",
            "description": "提取内容后存储的属性名"
          },
          "code": {
            "type": "string",
            "description": "jq语法表达式。例如 jq('div') 表示提取所有div标签的内容"
          }
        }
      }
    }
  ],
  "returns": [
    {
      "name": "code",
      "type": "number",
      "description": "执行状态码，0表示成功"
    },
    {
      "name": "msg",
      "type": "string",
      "description": "执行状态描述"
    },
    {
      "name": "data",
      "type": "object",
      "description": "提取到的内容对象",
      "properties": {
        "prop_name": {
          "type": "string",
          "description": "提取内容后存储的属性名"
        },
        "type": {
          "type": "string",
          "description": "提取到的内容类型",
          "enum": [
            "string",
            "array"
          ]
        },
        "value": {
          "type": "string",
          "description": "提取到的内容值"
        }
      }
    }
  ]
}