连接 Creator 工程
cocos_project_connectConnects to a Cocos Creator project backend via an absolute project path, reusing or starting the backend without opening the editor or login. Returns project and instance IDs.
Instructions
兼容显式连接入口;普通工程工具可直接传 workspacePath 或 projectPath 自动连接。此入口使用绝对工程路径,复用或启动工程后端,不启动编辑器或登录,返回工程与实例标识。
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": {
"projectPath": "<projectPath>"
},
"name": "cocos_project_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | ||
| projectPath | Yes |