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:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user