{ "name": "wechat-check-online", "displayName": "微信在线状态检查", "description": "检查微信账号是否在线,返回在线状态。是消息收发和联系人操作的前置检查。", "category": "wechat", "version": "1.0.0", "endpoint": { "method": "POST", "url": "{{wechatApiBase}}/login/check-online", "headers": { "Content-Type": "application/json" } }, "parameters": { "type": "object", "required": [], "properties": {} }, "requestTransform": { "description": "无需参数,发送空 body", "template": {} }, "response": { "type": "object", "properties": { "ret": { "type": "integer", "description": "200 表示请求成功" }, "msg": { "type": "string", "description": "操作结果描述" }, "data": { "type": "boolean", "description": "true=在线, false=离线" } } }, "usageExamples": [ { "name": "检查微信在线状态", "input": {}, "description": "检查当前微信是否在线,返回 data=true 表示在线" } ], "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 } }