在开发者工具中打开项目
wdt_openOpens or focuses a WeChat mini program project using the official CLI; requires the IDE service port to be enabled.
Instructions
调用官方 CLI 打开(或聚焦)一个小程序项目。需要服务端口开启;登录状态由 IDE 决定。
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_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | 可选的 IDE HTTP 服务端口;一般无需传入 | |
| projectPath | No | 小程序项目目录;省略时使用 WECHAT_DEVTOOLS_PROJECT |