app_ensure
Ensure a desktop app is running and usable: check its state, restore a hidden window without stealing focus, or launch it by executable or Store AUMID, then wait until usability is confirmed.
Instructions
Ensure an app is alive and usable, then prove it. Reports whether the app is running, window-gone or not running; restores a hidden window without stealing focus, or launches it (exe / Store AUMID) and waits until it is actually usable. ok is true only when usability was observed, not merely when a launch was issued.
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": "app_ensure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exe | No | executable to start when the app is gone | |
| aumid | No | Store app id, e.g. Family!App | |
| dry_run | No | ||
| timeout | No | ||
| class_name | No | ||
| process_name | No | process name, with or without .exe | |
| title_contains | No | substring of the window title |