launch_app
Open Android apps in Waydroid with custom window, hidden display, size, DPI, or cold-start options, returning the display ID for input, screenshots, and UI inspection.
Instructions
Opens an app. window opens it in its own desktop window and hidden on an off-screen display with no window (both need waydroid-app-displays; hidden defaults to 1080x2340 at 440 dpi). waydroid uses Waydroid's own window. size fixes the Android display in pixels and dpi its density (dp width = pixels * 160 / dpi), so 720x1280 at 320 dpi is a 360 dp phone. Launching an open app again applies the new options, and options left out go back to the defaults. Returns the display id that input, screenshot and ui_tree act on; it changes each time the app is closed and opened.
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": {
"package": "<package>"
},
"name": "launch_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | ||
| mode | No | Default: window when the waydroid-app-displays service is running, otherwise waydroid. | |
| size | No | Android display size WIDTHxHEIGHT in pixels, such as 1080x2340. | |
| package | Yes | ||
| restart | No | Force-stop the app first, for a cold start. |