start_activity
Launches an Android activity by URL, deep link, or exact component, waits for it to draw, and returns am start -W launch timing.
Instructions
Starts an activity with an intent on a display, and waits for it to draw: open a URL or deep link (url), or an exact component such as com.android.settings/.Settings. Returns am start -W's timing (TotalTime is the launch time in ms).
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": "start_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Data URI for an ACTION_VIEW intent, such as https://example.com or myapp://path. | |
| action | No | Intent action. Default: android.intent.action.VIEW with url, otherwise MAIN. | |
| extras | No | String extras, passed with --es. | |
| package | No | App to act on. An app in its own window or hidden display is found by package; otherwise Waydroid's main display is used. | |
| component | No | package/activity to start. | |
| display_id | No | Android display id instead of a package; 0 is Waydroid's main display. |