上传小程序版本(默认禁用)
wdt_uploadUploads a mini program version to the WeChat backend via the official CLI. Requires explicit confirm=true and upload allowlist; publishing is irreversible.
Instructions
调用官方 CLI 上传版本到微信后台。默认禁用;仅在 WECHAT_DEVTOOLS_MCP_ALLOW_UPLOAD=1 且 confirm=true 时执行。此操作会发布版本,不可撤销。
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": {
"version": "<version>",
"desc": "<desc>"
},
"name": "wdt_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | Yes | 版本描述 | |
| confirm | No | 必须显式传 true 才会执行上传 | |
| version | Yes | 版本号,如 1.0.0 | |
| projectPath | No | 小程序项目目录;省略时使用 WECHAT_DEVTOOLS_PROJECT |