install_app
Installs a HarmonyOS application package (.hap) onto a connected device using HDC, with optional device targeting and server path configuration.
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": {
"hap_path": "<hap_path>"
},
"name": "install_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hap_path | Yes | ||
| device_id | No | ||
| hdc_server | No |