Skip to Content

app_open

Launch or focus an app, or open a file in it. The app has to be allowed for control on this machine. Opens in the background unless background is false.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
appstringnoApp name or bundle id. Must be allowed for control.
backgroundbooleannoDo not bring it to the front (default true). Default: true.
observe`“none”“ui”“image”`
pathstringnoA file or folder to open (with app, in that app).

Result

NameTypeRequiredMeaning
audit_idstringyesId of the audit line on the machine.
dispatchedbooleanyes
foreground_changedbooleanyesThe frontmost app or window changed because of the action.
observationobjectno
settled_msintegeryesHow long the screen took to go quiet after the action, in milliseconds.

Examples

{ "name": "app_open", "arguments": { "machine": "<machine>" } }

Limits

The call times out after 30 s (timed_out). Available since version 0.0.2. A refused or failed call returns one of the error codes.