mock_wx_method
Override WeChat wx methods to return fixed results, simulating third-party dependencies for controlled testing.
Instructions
覆盖 wx 方法并返回固定结果(用于模拟第三方依赖)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>",
"result": "<result>"
},
"name": "mock_wx_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | 需要覆盖的 wx 方法名 | |
| result | Yes | 指定调用结果 |