Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
sizeNo1440x900
commandYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully carries the burden. It details Xephyr display creation, Chromium special flags and CDP port, D-Bus isolation, return structure, failure conditions, and cursor separation for parallel agents.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with front-loaded purpose and separate details. Slightly verbose with some redundancy (Xephyr mentioned twice), but every sentence adds value. Could be trimmed slightly without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (isolated display launch, parallel agents), the description is comprehensive. It explains return fields, failure modes, and usage caveats. The existing output schema is described in detail, so no gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description thoroughly explains each parameter: 'command' is any shell command with examples, 'name' is optional with default empty, 'size' defaults to '1440x900'. This compensates fully for missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Launch', the resource 'GUI app in its OWN new Xephyr display/window', and the output 'return its instance id'. It effectively distinguishes from sibling tools like open_file (for files) and close_instance (for managing instances).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides concrete command examples, special handling for Chromium and other GTK apps, and warns against sharing instances between agents. Lacks explicit 'when not to use' direction, but context strongly implies it's for launching new app instances.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/segentic-lab/glovebox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server