Skip to main content
Glama

Screenshot sandbox

sandbox_screenshot

Capture the sandbox desktop or a specific window to return a preview image while saving the full-resolution PNG on the host for visual inspection and coordinate-based clicks.

Instructions

Capture the sandbox desktop, or one window by title/pid. Returns a preview image; the full-resolution PNG is saved on the host. sandbox_click coordinates refer to this image by default.

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_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNoCapture only the main window of this process.
nameNoLabel used in the saved file name.
maxWidthNoPreview width (default 1280).
windowTitleNoCapture only the first window whose title contains this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden and does disclose real behavior: it returns a preview image while the full-resolution PNG is written to the host, which is a side effect an agent needs to know. It omits failure behavior (unknown window title, no active desktop session) and any permission or latency considerations.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action, then the return contract, then the coordinate caveat that matters most for chaining. Nothing is redundant.

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

Completeness4/5

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

With no output schema present, the description correctly explains what comes back (preview image) and where the full artifact lives. The remaining gap is edge-case behavior — what happens when no window matches the title, or when the desktop is unavailable — which an agent would want before relying on this in a UI loop.

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

Parameters3/5

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

Schema coverage is 100% and every parameter is already documented, so the schema does the heavy lifting. The description reinforces that window scoping is driven by title or pid, but adds no format, default, or interaction detail beyond the schema's own 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?

States a specific verb and resource ('Capture the sandbox desktop') plus a scoped variant ('or one window by title/pid'), which is enough to distinguish it from siblings like sandbox_record_start or sandbox_ui_tree without opening any schema.

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?

The description establishes the two modes (whole desktop vs. a single window) and, usefully, ties the output to a downstream tool: 'sandbox_click coordinates refer to this image by default.' It does not explicitly name an alternative or state when not to use this tool, so it falls short of a full routing statement.

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