mumu_foreground
Identifies the app or activity currently in the foreground on a MuMu emulator instance by checking activity records and the focused window to resolve transition mismatches.
Instructions
Which app/activity is in front right now.
Reads dumpsys activity activities and falls back to the focused window;
the two disagree during transitions, so both are consulted.
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": "mumu_foreground"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmindex | No |