Skip to main content
Glama

vm_screenshot

Capture a UTM guest's screen as a native-resolution PNG for visual inspection and coordinate mapping, with optional Windows window targeting or token-saving downscaling.

Instructions

The guest's screen as a PNG at native resolution; vm_click coordinates refer to a full-screen shot. On Windows guests with the helper (vm_helper_install) it needs no QMP and takes hwnd (one window, from vm_windows) and max_width (downscale to save tokens; a text note then gives the origin and scale to map image pixels back to screen pixels). Without the helper: QMP, full screen.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vm": "<vm>"
    },
    "name": "vm_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
hwndNo
max_widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden, and it does disclose a lot: output format and resolution, the QMP-vs-helper backend difference, and the fact that max_width produces an accompanying text note with origin and scale. It stops short of stating whether the guest must be running, what happens when hwnd is omitted or invalid, or any failure/timeout behavior — significant gaps for a zero-annotation tool.

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?

Front-loaded with the return value and the vm_click coordinate caveat, then organized by helper/no-helper branches. It is dense but nearly every clause carries information; the telegraphic tail ('Without the helper: QMP, full screen.') is terse to the point of being slightly clipped.

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?

For a 3-parameter tool with no annotations and no output schema, the definition covers the essentials an agent needs: return type, resolution, coordinate interpretation, backend prerequisites, and parameter effects. It could go further on preconditions (guest running state) and error behavior, but nothing critical to a correct call is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description has to compensate, and it mostly does: hwnd is explained as picking a single window sourced from vm_windows, and max_width is explained as a downscale to save tokens that also emits an origin/scale note for mapping pixels back. Only vm itself is left unstated, which is an obvious VM identifier, so the gap is minor.

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 states precisely what is returned (the guest's screen as a PNG at native resolution) and immediately ties it to a downstream consumer: vm_click coordinates refer to a full-screen shot. That framing tells an agent both what the tool produces and how its output relates to a sibling, without needing the 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?

It clearly splits the two invocation modes: on Windows guests with the helper (vm_helper_install) no QMP is needed and hwnd/max_width apply; without the helper it uses QMP and captures the full screen. That is actionable conditional guidance with named prerequisites, though it never explicitly says when to pick a different capture/screenshot path or what to do if neither mode is available.

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