docs: 优化图片支持方式的文档说明 (#124)

- 在README中详细说明两种图片支持方式(HTTP链接和本地路径)
- 明确推荐使用本地绝对路径的原因和优势
- 添加具体的使用示例和代码示例
- 优化MCP协议中images字段的描述,提供更清晰的格式说明
- 帮助用户更好地理解和使用图片发布功能

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
zy
2025-09-20 23:44:59 +08:00
committed by GitHub
parent 34120b4831
commit 716cf104ce
2 changed files with 33 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ func (s *AppServer) processToolsList(request *JSONRPCRequest) *JSONRPCResponse {
},
"images": map[string]interface{}{
"type": "array",
"description": "图片路径列表支持本地路径或URL至少需要1张图片",
"description": "图片路径列表至少需要1张图片。支持两种方式1. HTTP/HTTPS图片链接自动下载2. 本地图片绝对路径(推荐,如:/Users/user/image.jpg",
"items": map[string]interface{}{
"type": "string",
},