Foreground
foregroundRetrieve the active Android app's package and activity plus whether a crash dialog is visible; use this lightweight check instead of a full snapshot when that data is all you need.
Instructions
Get just the foreground app: package, activity, and whether a crash dialog is showing. Cheaper than a full snapshot when you only need this.
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": "foreground"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||