wechat_build_authorization
Builds WeChat Pay V3 Authorization headers offline using RSA-SHA256 signing, enabling authenticated HTTP calls without network requests.
Instructions
微信支付V3:离线构造 Authorization 请求头(RSA-SHA256 签名),不发起网络请求。用于自建 HTTP 调用。
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>",
"url": "<url>"
},
"name": "wechat_build_authorization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 接口路径(不含域名),如 /v3/pay/transactions/native | |
| body | No | 请求体原文(GET 传空串) | |
| cred | No | 凭证(可省略,改用环境变量;PEM 字段可直接传 PEM 全文或 .pem 文件路径) | |
| nonce | No | ||
| method | Yes | HTTP 方法,如 GET/POST | |
| timestamp | No |