{ "name": "wechat-get-conversations", "displayName": "获取微信会话列表", "description": "获取按联系人分组的会话列表,含最近消息摘要,用于发现活跃对话。", "category": "wechat", "version": "1.0.0", "endpoint": { "method": "GET", "url": "{{wechatApiBase}}/conversations", "headers": {} }, "parameters": { "type": "object", "required": [], "properties": {} }, "requestTransform": { "description": "无需参数" }, "response": { "type": "object", "properties": { "ret": { "type": "integer", "description": "200表示成功" }, "data": { "type": "array", "items": { "type": "object", "properties": { "wxid": { "type": "string", "description": "联系人wxid" }, "nickName": { "type": "string", "description": "联系人昵称" }, "lastMessage": { "type": "string", "description": "最近消息摘要" }, "lastTime": { "type": "string", "description": "最近消息时间ISO" }, "lastType": { "type": "string", "description": "最近消息类型" }, "direction": { "type": "string", "description": "最近消息方向" } } } } } }, "usageExamples": [ { "name": "查看所有活跃会话", "input": {}, "description": "获取当前所有有消息记录的会话" } ], "tokenConfig": { "type": "config", "configFile": "~/.openclaw/wechat-credentials.json", "tokenField": "wechatApiBase", "currentToken": "http://8.138.37.248/api/wechat-agent", "resolutionOrder": ["configFile", "currentToken"] }, "timeout": 10000, "retry": { "maxAttempts": 2, "delay": 1000, "backoffMultiplier": 2 } }