Skip to main content
Glama

Desktop screenshot

computer_screenshot
Read-only

Take a screenshot of the graphical desktop in the sandbox and return it as an image with its size and the screen size. Use it to see what is on the screen before acting with the mouse and keyboard, and to check the result afterwards. Needs a sandbox created from the 'desktop' template; Desktop & Computer Use must be enabled for your account (paid plans, or after topping up at least US$15). Without sandbox_id the last sandbox of this conversation is used – these tools never create one. It does not wake a sleeping sandbox.

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

Input Schema

NameRequiredDescriptionDefault
formatNoImage format (default jpeg – smaller; png is lossless).
qualityNoJPEG quality 1–100 (default 70).
max_widthNoScale the image down to at most this width in pixels (default 1280; 0 = full size). Coordinates for mouse actions are always screen pixels.
sandbox_idNoSandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id.

Output Schema

NameRequiredDescriptionDefault
widthYesImage width in pixels.
formatYesImage format: jpeg or png.
heightYesImage height in pixels.
sandbox_idYesSandbox ID.
screen_widthNoScreen width in pixels (mouse coordinates).
screen_heightNoScreen height in pixels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, and the description respects that. On top of this, it discloses real behavior: entitlements, template requirement, sandbox_id fallback, and the non-waking constraint. The remaining gap is the sleep state: it says the call won't wake a sandbox but not what happens then, such as an error versus a black frame.

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?

Four sentences, each bearing weight: purpose first, then usage guidance, prerequisites, and default/state behavior. No repetition or filler, and the core capability is front-loaded.

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?

Covers everything needed to call it correctly: what it returns (with output schema handling the shape), entitlement and template prerequisites, default sandbox resolution, and the non-waking caveat. Rich coverage for a 4-parameter read-only tool with a full schema.

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 description coverage is 100%, so the baseline is 3, and the schema fully documents format, quality, max_width, and sandbox_id. The description adds only one nuance beyond the schema: the default sandbox_id is the last sandbox in this conversation and 'these tools never create one'. It does not restate or enlarge on the image-sizing or quality tradeoffs.

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?

Opens with a specific verb and resource ('Take a screenshot of the graphical desktop in the sandbox') plus a return description ('an image with its size and the screen size'). It implicitly separates itself from the action tool by framing itself as the step 'before acting with the mouse and keyboard', but never names computer_action, leaving the routing slightly inferential.

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?

Gives concrete when-to-use guidance: before acting with mouse/keyboard and to check results afterwards. It also states prerequisites (desktop template sandbox, Desktop & Computer Use entitlement) and the important exclusion that it does not wake a sleeping sandbox. It stops short of naming a resume/alternative tool for that sleeping case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources