| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {
- "name": "wechat-send-text",
- "displayName": "微信发送文字消息",
- "description": "向指定微信用户或群聊发送文字消息,是自动应答的核心技能。",
- "category": "wechat",
- "version": "1.0.0",
- "endpoint": {
- "method": "POST",
- "url": "{{wechatApiBase}}/message/send-text",
- "headers": {
- "Content-Type": "application/json"
- }
- },
- "parameters": {
- "type": "object",
- "required": ["toWxid", "content"],
- "properties": {
- "toWxid": {
- "type": "string",
- "description": "接收方 wxid(好友wxid 或 群聊id,如 12345@chatroom)"
- },
- "content": {
- "type": "string",
- "description": "文字消息内容"
- },
- "ats": {
- "type": "string",
- "description": "群聊中 @的用户 wxid,多个用逗号分隔",
- "default": ""
- }
- }
- },
- "requestTransform": {
- "description": "直接透传参数",
- "template": {
- "toWxid": "{{toWxid}}",
- "content": "{{content}}",
- "ats": "{{ats}}"
- }
- },
- "response": {
- "type": "object",
- "properties": {
- "ret": { "type": "integer", "description": "200 表示发送成功" },
- "msg": { "type": "string", "description": "操作结果描述" }
- }
- },
- "usageExamples": [
- {
- "name": "回复好友消息",
- "input": { "toWxid": "wxid_abc123", "content": "收到,我马上处理!" },
- "description": "向好友发送文字回复"
- },
- {
- "name": "群聊发消息",
- "input": { "toWxid": "12345678@chatroom", "content": "大家好!", "ats": "" },
- "description": "在群聊中发送文字消息"
- }
- ],
- "tokenConfig": {
- "type": "config",
- "configFile": "~/.openclaw/wechat-credentials.json",
- "tokenField": "wechatApiBase",
- "currentToken": "http://8.138.37.248/api/wechat-agent",
- "resolutionOrder": ["configFile", "currentToken"]
- },
- "timeout": 15000,
- "retry": {
- "maxAttempts": 2,
- "delay": 1000,
- "backoffMultiplier": 2
- }
- }
|