manifest_version: "1.0.0"
name: web_fetch
display_name: 网页抓取
description: 网页内容抓取工具，支持 HTML 解析、截图等功能
author: Jarvis
version: "1.0.0"

type: sync
runtime: python
entry: tools/implementations/web_fetch.py
timeout: 30000

config_schema:
  timeout:
    type: integer
    description: 请求超时时间（秒）
    default: 30
  user_agent:
    type: string
    description: User-Agent 字符串
    default: "Mozilla/5.0 (compatible; Jarvis/1.0)"

commands:
  - name: fetch
    description: |
      抓取网页内容。
      参数:
      - url (必需): 网页 URL
      - include_images (可选): 是否包含图片列表
    parameters:
      type: object
      properties:
        url:
          type: string
          format: uri
        include_images:
          type: boolean
          default: true
      required: [url]

  - name: screenshot
    description: |
      截取网页截图。
      参数:
      - url (必需): 网页 URL
    parameters:
      type: object
      properties:
        url:
          type: string
          format: uri
      required: [url]

tags: [web, fetch, scraping]
enabled: true
