connect
Establish a WebSocket connection to a WeChat mini-program already running in Developer Tools, enabling automated control and interaction.
Instructions
连接到已在微信开发者工具中运行的小程序(缺省连接本机 --port 端口)
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": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wsEndpoint | No | 开发者工具自动化 WebSocket 地址(如 ws://127.0.0.1:9420),缺省时使用 --port 指定的端口 |