[
  {
    "name": "start_here",
    "title": "从这里开始",
    "description": "SafeSellAI 接入引导：返回文字版上手步骤（试查品牌词 → 批量排查 → 免费店铺体检）。支持 MCP Apps 的客户端会同时渲染欢迎面板。适用场景：刚接入、不知道先做什么时调用。",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "patent_search",
    "description": "网页版专利文字/专利号检索。query 为搜索词；其余参数在 body 中按网页传入，包括国家、专利类型、状态、分页。权限、次数与费用由原网页接口执行。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "query"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "patent_image_search",
    "description": "完整专利图搜。提供产品图片，body.category 沿用网页必选品类，可传类型/状态等网页参数。默认先跑网页漏斗，仅收到明确 fallback 时继续通用图搜；服务失败不自动重提。mode=standard 直接走网页通用图搜。结果中的未执行维度不能视为通过。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "mode": {
          "type": "string",
          "enum": [
            "auto",
            "funnel",
            "standard"
          ],
          "default": "auto"
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "patent_compare",
    "description": "产品实拍图与指定专利逐项对比，调用网页版指定专利比对接口。返回相同点、差异、附图和实际计费。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "patent_number": {
          "type": "string"
        }
      },
      "required": [
        "patent_number"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "patent_rerank",
    "description": "对图搜候选执行网页版 AI 精排。body 原样传网页字段，如 candidates、searchLogId；不另设候选数量或模型限制。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "search_design_patent_by_image",
    "description": "外观专利图搜，复用网页类目、检索、涉诉旁路与费用；返回实际覆盖和可核对证据。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "category": {
          "type": "string",
          "minLength": 1
        },
        "include_litigated_bypass": {
          "type": "boolean",
          "default": true
        }
      },
      "required": [
        "category"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "compare_design_patent",
    "description": "调用网页法院普通观察者框架，比对商品图片与指定外观专利；保留相同点、差异及原始结果。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "patent_number": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "patent_number"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "search_usco_copyright",
    "description": "检索 USCO 公开登记副本，登记号、作品名或权利人；登记不等于该图片的权属证明。权限和限额沿用网页。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "minLength": 2,
          "maxLength": 160
        },
        "mode": {
          "type": "string",
          "enum": [
            "registration",
            "title",
            "claimant"
          ]
        }
      },
      "required": [
        "query",
        "mode"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_image_copyright_full",
    "description": "完整图片版权排查及 USCO 主体联动。全网溯源须显式 enable_reverse_source=true，成功才计额外费用；任务中断只恢复 jobId。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "seller_brand": {
          "type": "string",
          "maxLength": 100
        },
        "enable_reverse_source": {
          "type": "boolean",
          "default": false
        },
        "jobId": {
          "type": "string",
          "format": "uuid"
        },
        "wait": {
          "type": "boolean",
          "default": true
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_utility_patent_fto",
    "description": "实用专利 Claim 1 特征对照；数据/功能未就绪时显式返回 503 feature_not_ready，且不扣费。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300
        },
        "bulletPoints": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 2000
          },
          "maxItems": 10
        },
        "description": {
          "type": "string",
          "maxLength": 10000
        },
        "imageUrl": {
          "type": "string",
          "maxLength": 2048
        },
        "country": {
          "type": "string",
          "default": "US"
        },
        "cpcHints": {
          "type": "array",
          "maxItems": 8,
          "items": {
            "type": "string"
          }
        },
        "requestId": {
          "type": "string",
          "minLength": 8,
          "maxLength": 100
        }
      },
      "required": [
        "title",
        "bulletPoints"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_copyright",
    "description": "完整版图片版权检测，使用原网页单图接口、任务与计费。jobId 建议调用方生成 UUID 并持久化，超时后只恢复查询，不重复提交收费任务。默认等待最终结果，wait=false 只提交；自有品牌与其他网页参数放 body。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_b64": {
          "type": "string"
        },
        "image_url": {
          "type": "string"
        },
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "jobId": {
          "type": "string"
        },
        "wait": {
          "type": "boolean",
          "default": true
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_copyright_batch",
    "description": "完整版批量图片版权检测。imageUrls 或 files 直接沿用网页参数，网页决定格式、大小、批量上限和费用。jobId 用于幂等与恢复；默认等待最终结果，错误或未知回执不自动重提。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "body": {
          "type": "object",
          "additionalProperties": {}
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "mimeType": {
                "type": "string"
              },
              "base64": {
                "type": "string"
              }
            },
            "required": [
              "field",
              "name",
              "mimeType",
              "base64"
            ],
            "additionalProperties": false
          }
        },
        "jobId": {
          "type": "string"
        },
        "wait": {
          "type": "boolean",
          "default": true
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "copyright_job",
    "description": "恢复查询原版权任务，仅读取，不重新检测、不重复扣费。wait=true 等最终结果；收到 completed 才算任务完成，failed 或不存在均不当作检测通过。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string"
        },
        "wait": {
          "type": "boolean",
          "default": false
        }
      },
      "required": [
        "jobId"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "website_tools",
    "description": "列出当前版本可用的客户网页业务接口。MCP 继承网页计费、额度和账号隔离；目录不代表越权授权。可按 feature 搜索路径。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "feature": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "website_request",
    "description": "执行网页版业务接口，支持目录中的匹配库、店铺、绩效、专利、合规、上传与导出。使用原网页参数；query 为查询字段，body 为 JSON；上传用 files 数组（base64），不传鉴权头。写操作可能修改数据或扣费，规则和网页版相同；SSE 返回全部事件，文件返回内嵌资源。stream 可显式选择网页流式请求，默认按路由识别。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE"
          ]
        },
        "path": {
          "type": "string"
        },
        "query": {
          "type": "object",
          "additionalProperties": {}
        },
        "body": {},
        "stream": {
          "type": "boolean"
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "mimeType": {
                "type": "string"
              },
              "base64": {
                "type": "string"
              }
            },
            "required": [
              "field",
              "name",
              "mimeType",
              "base64"
            ],
            "additionalProperties": false
          }
        },
        "headers": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "method",
        "path"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "get_balance",
    "description": "查询网页版 S算力余额和套餐，不扣费。",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "tro_lawfirms",
    "description": "查询真实 TRO 律所下单地址黑名单：系统记录及本账号自定义记录。可选 keyword 筛选地址或风险备注；无匹配不代表没有风险。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "keyword": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "whitelist_list",
    "description": "查询当前账号真实商标词白名单。",
    "inputSchema": {
      "type": "object",
      "properties": {},
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "whitelist_add",
    "description": "将词加入当前账号真实白名单，影响后续网页与插件排查。仅在用户确认该词可豁免后调用。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "brand"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "whitelist_remove",
    "description": "移除当前账号的真实白名单词，后续恢复正常排查。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "brand"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "get_usage",
    "description": "查询本账号近 N 天 API/MCP 调用统计与引导任务进度（quests），不扣费。网页版全部 S算力流水请用 website_request GET /api/scoin/transactions。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "days": {
          "type": "integer",
          "minimum": 1,
          "default": 30
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_brand",
    "description": "使用网页版品牌查询检查品牌/关键词。适用场景：拿不准一个词能不能用在标题/品牌里时先查它。例：{\"brand\":\"nike\"}。权限与费用按网页版；category/position 为兼容字段，网页版查询以品牌词和账号词库为准。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "string",
          "minLength": 1
        },
        "category": {
          "type": "string"
        },
        "position": {
          "type": "string"
        }
      },
      "required": [
        "brand"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_batch",
    "description": "使用网页版批量品牌查询。适用场景：一批词或多条 Listing 标题一次过筛。例：{\"words\":[\"词1\",\"词2\"]}。批量上限由网页版校验（当前每次 500 词），MCP 不另设较小上限。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "words": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "category": {
          "type": "string"
        }
      },
      "required": [
        "words"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_link",
    "description": "完整版 Listing 评分。先用用户自己的浏览器或 SafeSellAI 插件读取商品页，再将 platform/title/brand/features/description/images/itemId 放入 productData。没有 productData 时返回 PLUGIN_REQUIRED 且不扣费，绝不在服务器抓取或走代理。url 支持商品链接、ASIN、Walmart Item ID。dims 显式开启版权、专利和合规；参数及费用同网页。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "minLength": 1
        },
        "productData": {
          "type": "object",
          "additionalProperties": {}
        },
        "extractionSource": {
          "type": "string"
        },
        "imageDepth": {
          "type": "number"
        },
        "dims": {
          "type": "object",
          "properties": {
            "imageCopyright": {
              "type": "boolean"
            },
            "designPatent": {
              "type": "boolean"
            },
            "utilityPatent": {
              "type": "boolean"
            },
            "compliance": {
              "type": "boolean"
            },
            "compliancePlatform": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_tro",
    "description": "使用网页版 TRO 案件查询。适用场景：确认某个词是否已有 TRO 涉诉案件。例：{\"brand\":\"nike\"}。费用和权限按网页版。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "brand"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "check_image",
    "description": "使用网页版单图检查（文字、图形商标、TRO）。版权和外观专利请使用网页对应接口或 store_audit 的维度开关。费用、图片格式及大小按网页版。自有品牌以网页账号词库为准。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "image_url": {
          "type": "string"
        },
        "image_b64": {
          "type": "string"
        },
        "own_brands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "optimize_ai",
    "description": "使用网页版 AI 改写。费用及批量上限按网页版（当前最多 1000 SKU），MCP 不另设 50 条限制。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "brand": {
                "type": "string"
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "description": {
                "type": "string"
              },
              "riskHits": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "minItems": 1
        }
      },
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "f6_hits",
    "description": "使用网页版 F6 命中列表。权限及分页参数按网页版。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "minimum": 1,
          "default": 50
        },
        "offset": {
          "type": "integer",
          "minimum": 0,
          "default": 0
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  },
  {
    "name": "store_audit",
    "description": "店铺审查：提供 storeId 使用网页版绑定店铺体检；提供 items 使用网页批量商品检查及所选增量维度。无 MCP 独立 50/20 条上限；每个网页请求的限制、费用及账号词库照常适用。多步骤失败返回已完成部分，不自动重试或重复扣费。scanned:false 或未返回结果的维度表示未执行，不等于通过。own_brands 为兼容字段，自有品牌使用网页账号配置；跟卖检查不要把竞争店铺品牌加入自己的白名单。",
    "inputSchema": {
      "type": "object",
      "properties": {
        "storeId": {
          "type": "number"
        },
        "maxItems": {
          "type": "number"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "sku": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "brand": {
                "type": "string"
              },
              "features": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "description": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "minItems": 1
        },
        "own_brands": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "compliance": {
          "type": "boolean"
        },
        "compliance_platform": {
          "type": "string"
        },
        "patent": {
          "type": "boolean"
        },
        "design_patent": {
          "type": "boolean"
        },
        "copyright": {
          "type": "boolean"
        },
        "trademark_vision": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "$schema": "http://json-schema.org/draft-07/schema#"
    },
    "execution": {
      "taskSupport": "forbidden"
    }
  }
]
