Skip to main content
Glama

Launch app in sandbox

sandbox_launch

Launch a GUI app or packaged app on the sandbox desktop without waiting for exit; returns its PID for automation and UI testing.

Instructions

Start a program (e.g. a GUI app) on the sandbox desktop without waiting for it to exit. Returns its pid.

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": "sandbox_launch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
argsNo
pathNoExecutable path inside the sandbox, or PackageFamilyName!ApplicationId.
aumidNoInstalled packaged app AUMID (PackageFamilyName!ApplicationId), instead of path.
waitForWindowSecNoWait up to N seconds for a main window (default 15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the async nature and that a pid is returned, but says nothing about permission/provisioning requirements, what happens if the executable is missing, whether a waitForWindowSec timeout raises an error or silently returns, or what the process does if it exits immediately.

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?

Two short sentences, front-loaded with the action and its distinguishing non-blocking behavior, with no filler. Its terseness borders on under-specification, but no sentence is wasted.

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

Completeness3/5

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

The pid return value is covered, which is helpful given no output schema exists. However, for a five-parameter launcher with zero annotation coverage, the definition leaves arg/cwd semantics and failure/timeout behavior unexplained, and gives no hint about the sandbox lifecycle state required before launching.

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

Parameters2/5

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

Five parameters with only 60% schema coverage, and the description adds no parameter meaning at all — cwd and args are undocumented in both schema and description. The only related statement, "Returns its pid," describes the return value, not any input.

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

Purpose4/5

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

The description gives a specific verb and resource — "Start a program (e.g. a GUI app) on the sandbox desktop" — plus the key differentiator "without waiting for it to exit." That non-blocking qualifier implicitly separates it from blocking siblings like sandbox_exec/sandbox_run, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase "without waiting for it to exit" signals a fire-and-forget launch as opposed to a blocking run, which is the main decision point. It never states when to prefer this over sandbox_exec, sandbox_run, or sandbox_start, and gives no prerequisites or exclusions.

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