{
  "name": "Rust图像处理",
  "description": "使用Rust语言进行高性能图像处理",
  "version": "1.0.0",
  "category": "image",
  "inputs": [
    {
      "name": "context",
      "type": "object",
      "description": "上下文数据"
    },
    {
      "name": "inputs",
      "type": "object",
      "description": "输入数据"
    },
    {
      "name": "config",
      "type": "object",
      "description": "配置参数"
    }
  ],
  "outputs": [
    {
      "name": "success",
      "type": "boolean",
      "description": "执行是否成功"
    },
    {
      "name": "output",
      "type": "string",
      "description": "执行结果消息"
    },
    {
      "name": "result",
      "type": "object",
      "description": "图像处理结果"
    }
  ],
  "config": [
    {
      "name": "operation",
      "type": "select",
      "label": "处理操作",
      "required": true,
      "default": "resize",
      "options": [
        {"value": "resize", "label": "缩放"},
        {"value": "crop", "label": "裁剪"},
        {"value": "filter", "label": "滤镜"},
        {"value": "convert", "label": "格式转换"}
      ]
    },
    {
      "name": "width",
      "type": "number",
      "label": "宽度",
      "required": false,
      "default": 800,
      "min": 1,
      "max": 4096
    },
    {
      "name": "height",
      "type": "number",
      "label": "高度",
      "required": false,
      "default": 600,
      "min": 1,
      "max": 4096
    },
    {
      "name": "quality",
      "type": "number",
      "label": "质量",
      "required": false,
      "default": 95,
      "min": 1,
      "max": 100
    },
    {
      "name": "filter_type",
      "type": "select",
      "label": "滤镜类型",
      "required": false,
      "default": "blur",
      "options": [
        {"value": "blur", "label": "模糊"},
        {"value": "sharpen", "label": "锐化"},
        {"value": "grayscale", "label": "灰度"},
        {"value": "sepia", "label": "棕褐色"}
      ]
    }
  ]
}
