auto_connect
Automatically connects to a configured Android or iOS device by reading device ID and platform from a VSCode AScript project's settings.json. Requires the project root path.
Instructions
从当前 AScript 工程目录自动连接设备。 读取 .vscode/settings.json 中的 ascript.deviceId 和 ascript.platform,自动连接对应设备。 VSCode 插件创建工程时会保存这些信息,无需用户手动输入 IP。 传入当前工程的根目录路径即可。
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": {
"project_path": "<project_path>"
},
"name": "auto_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | AScript 工程根目录的绝对路径 |