{ "name": "test-billing", "displayName": "计费流程测试", "description": "测试技能:验证 OpenClaw 能否识别 API 错误并触发充值页面。调用即梦API但不传token,故意触发错误响应。", "category": "test", "version": "1.0.0", "endpoint": { "method": "POST", "url": "https://server.fmode.cn/api/volcengine/jimeng/getImgV4", "headers": { "Content-Type": "application/json" } }, "parameters": { "type": "object", "required": ["prompt"], "properties": { "prompt": { "type": "string", "description": "图片描述文本" }, "token": { "type": "string", "description": "认证token(首次测试故意不传,用户支付后传入)" } } }, "requestTransform": { "body": { "prompt": "{{prompt}}", "token": "{{token}}", "sizeDate": { "width": 512, "height": 512 }, "scale": 0.6, "force_single": true } }, "response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": { "type": "object" }, "error": { "type": "object" } } }, "timeout": 30000, "usageExamples": [ { "name": "测试计费流程(不传token)", "input": { "prompt": "测试" }, "description": "故意不传token触发API错误,验证Agent能否正确识别并引导用户充值" }, { "name": "携带token重试", "input": { "prompt": "测试", "token": "Bearer r:xxxxxxxxxxxx" }, "description": "用户支付后提供token,验证重试是否成功" } ] }