Skip to main content
Glama

Screenshot

screenshot
Read-only

Captures a peer's display and returns a scaled image whose coordinates map directly to click and move actions, optionally limited to a region for sharper small text.

Instructions

Take a screenshot of the peer's display and return the image (scaled so the long edge is at most 1280 px). Coordinates you read off this image can be passed straight to click / move.

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": {
      "peer": "<peer>"
    },
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
peerYesThe peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly
regionNoOptional x,y,w,h in screen pixels to capture just a part (sharper for small text)
displayNoDisplay index or name from `info` (default: the main display)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, but the description adds substantive behavior the annotations cannot convey: the image is downscaled so the long edge is at most 1280 px, which directly affects coordinate interpretation. It omits prerequisites such as the peer needing to be reachable and how failures are surfaced.

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?

Two short sentences with no filler; the core action and return format come first, and the coordinate handoff to click / move follows as actionable context.

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 three-parameter capture tool with no output schema, the description covers the action, the returned artifact, and its scaling, which is what an agent needs to interpret the result. Minor gaps are error/permission behavior and whether the peer must be online, which are left unstated.

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%, so peer, region, and display are already fully documented, including the region's sharpness benefit and the display default. The description adds no parameter-level detail beyond the schema, which is the expected baseline when the schema does the work.

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 ("Take a screenshot of the peer's display and return the image") and adds the scaling rule that defines the returned artifact. The closing note that coordinates map to click / move distinguishes its role in the toolkit 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?

Establishes a clear workflow: this is the tool to call to obtain coordinates that feed click and move. It does not spell out when-not-to-use conditions (e.g., peer offline, preferring a region capture for small text), so guidance is clear but not exhaustive.

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