| { | |
| "name": "text", | |
| "version": "1.0.0", | |
| "description": "文本清理工具,去除多余换行和标点符号替换", | |
| "author": "System", | |
| "ui_path": "/tool/text", | |
| "requirements": [], | |
| "enabled": true, | |
| "category": "utility", | |
| "capabilities": ["text_processing", "cleaning"], | |
| "governance": { | |
| "status": "active", | |
| "handling_decision": "正常使用", | |
| "dependency_risk": null | |
| }, | |
| "ui": { | |
| "type": "static" | |
| }, | |
| "tools": [ | |
| { | |
| "name": "clean_text", | |
| "display_name": "文本清理", | |
| "purpose": "清理文本,去除多余换行和替换标点符号", | |
| "applies_to": ["文本预处理", "格式清理"], | |
| "not_for": ["图片处理", "音频处理"], | |
| "parameters": { | |
| "text": { | |
| "type": "string", | |
| "required": true, | |
| "description": "要清理的文本" | |
| } | |
| }, | |
| "input_examples": [ | |
| {"text": "Hello\n\n\nWorld"} | |
| ], | |
| "output_examples": [ | |
| {"result": "Hello World"} | |
| ], | |
| "common_errors": [ | |
| { | |
| "code": "EMPTY_TEXT", | |
| "message": "输入文本为空", | |
| "solution": "请提供非空文本" | |
| } | |
| ], | |
| "risk_level": "low" | |
| } | |
| ] | |
| } | |