get_foreground_app
Identify which app is currently in the foreground on a selected device, so you can verify active context. Returns unknown when the backend cannot observe the foreground app.
Instructions
Identify the app currently in front on the selected device. The result reports unknown if the backend cannot observe it.
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": "get_foreground_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | ||
| timeout_ms | No |