launch
Starts WeChat Developer Tools and connects to a mini-program using configurable project path, CLI path, port, and ticket for automation.
Instructions
启动微信开发者工具并连接小程序(支持项目路径、cli 路径、端口、票据等参数)
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": "launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 自动化 WebSocket 端口号 | |
| ticket | No | 开发者工具登录票据 | |
| account | No | 用户 openid,用于多账号调试 | |
| cliPath | No | 微信开发者工具 cli 绝对路径,缺省时自动探测默认安装位置,Windows 默认: C:/Program Files (x86)/Tencent/微信web开发者工具/cli.bat | |
| timeout | No | 启动最长等待时间(ms),默认 30000 | |
| projectPath | No | 小程序项目绝对路径(uni-app 项目需指向编译产物 unpackage/dist/build/mp-weixin),缺省时自动探测当前工作区 | |
| trustProject | No | 自动信任项目(避免首次打开弹信任对话框阻塞编译),建议设为 true |