File size: 1,586 Bytes
fbd9d3d
cc826a1
fbd9d3d
 
 
cc826a1
fbd9d3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "name": "json",
  "version": "1.1.0",
  "description": "从JSON文件中提取content字段内容,支持将OpenAI格式的对话JSON还原为可读的对话记录",
  "author": "System",
  "ui_path": "/tool/json",
  "requirements": [],
  "enabled": true,
  "category": "content_extraction",
  "capabilities": ["content_extraction", "json_processing", "conversation_extraction"],
  "governance": {
    "status": "active",
    "handling_decision": "正常使用",
    "dependency_risk": null
  },
  "ui": {
    "type": "static"
  },
  "tools": [
    {
      "name": "extract_json_content",
      "display_name": "JSON内容提取",
      "purpose": "从JSON文件中提取content字段,自动识别对话格式并按对话格式输出",
      "applies_to": ["JSON解析", "内容提取", "对话还原"],
      "not_for": ["XML解析"],
      "parameters": {
        "json_file": {
          "type": "file",
          "required": true,
          "description": "JSON文件"
        },
        "field_path": {
          "type": "string",
          "required": false,
          "description": "字段路径"
        }
      },
      "input_examples": [
        {"json_file": "conversation.json", "field_path": "messages"}
      ],
      "output_examples": [
        {"content": "[用户] 你好\n[助手] 你好!有什么我可以帮助你的吗?"}
      ],
      "common_errors": [
        {
          "code": "INVALID_JSON",
          "message": "无效的JSON格式",
          "solution": "请检查JSON文件格式"
        }
      ],
      "risk_level": "low"
    }
  ]
}