生成小程序预览二维码
wdt_previewGenerates a WeChat Mini Program preview through the official DevTools CLI and can save the QR code as an image or base64 output; requires an authenticated session.
Instructions
调用官方 CLI 生成预览。qrFormat=image/base64 时可把二维码写入 qrOutput。需要已登录。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wdt_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qrFormat | No | ||
| qrOutput | No | 二维码图片输出路径(qrFormat 为 image/base64 时建议填写) | |
| infoOutput | No | 预览信息 JSON 输出路径 | |
| projectPath | No | 小程序项目目录;省略时使用 WECHAT_DEVTOOLS_PROJECT |