message / plugins /json /plugin.json
hunian
refactor(plugins): 插件短名并统一 MCP tool 为 {plugin}-{tool}
cc826a1
Raw
History Blame Contribute Delete
1.59 kB
{
"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"
}
]
}