File size: 1,558 Bytes
8ffb677
cc826a1
8ffb677
 
 
cc826a1
8ffb677
9bdc593
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  "name": "image",
  "version": "1.0.0",
  "description": "快速生成多种尺寸的图片",
  "author": "System",
  "ui_path": "/tool/image",
  "requirements": ["Pillow>=10.0.0"],
  "enabled": true,
  "category": "utility",
  "capabilities": ["image_processing", "resize"],
  "governance": {
    "status": "active",
    "handling_decision": "正常使用",
    "dependency_risk": "依赖 Pillow,版本要求 >=10.0.0"
  },
  "ui": {
    "type": "static"
  },
  "tools": [
    {
      "name": "resize_image",
      "display_name": "图片缩放",
      "purpose": "将图片缩放到指定尺寸",
      "applies_to": ["图片处理", "缩略图生成"],
      "not_for": ["文本处理", "音频处理"],
      "parameters": {
        "image_url": {
          "type": "string",
          "required": true,
          "description": "图片URL"
        },
        "width": {
          "type": "integer",
          "required": true,
          "description": "目标宽度"
        },
        "height": {
          "type": "integer",
          "required": true,
          "description": "目标高度"
        }
      },
      "input_examples": [
        {"image_url": "https://example.com/image.jpg", "width": 100, "height": 100}
      ],
      "output_examples": [
        {"resized_url": "https://example.com/resized.jpg"}
      ],
      "common_errors": [
        {
          "code": "INVALID_URL",
          "message": "无效的图片URL",
          "solution": "请检查URL是否可访问"
        }
      ],
      "risk_level": "low"
    }
  ]
}