launch_app
Launch any GUI command in an isolated Xephyr display window and return an instance ID. Supports Chromium with CDP debug port and GTK apps with D-Bus isolation.
Instructions
Launch a GUI app in its OWN new Xephyr display/window and return its instance id.
command is any shell command ('chromium', 'xterm', 'gimp', 'inkscape file.svg', …).
Chromium automatically gets X11 flags, a per-instance profile, downloads routed to
files//, and a CDP debug port (needed by upload_file). Other GTK apps get D-Bus
isolation so they render on this display, not the host.
Returns {"ok", "instance", "display", "name", "files_dir"} — pass that instance id to every control tool. Fails (isError) if Xephyr can't start on the host display, the command doesn't exist, or the app exits immediately. Each instance has its own cursor, so separate agents can drive separate instances in parallel; never share one instance between agents. The window appears on GLOVEBOX_HOST_DISPLAY (default :0). Give the app a moment to draw (settle_ms/wait_ms) before the first screenshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| size | No | 1440x900 | |
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |