| { | |
| "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" | |
| } | |
| ] | |
| } | |