Skip to main content
Glama

Screenshot the game

screenshot

Capture the game viewport as a PNG for canvas games and visual QA. Save it to a path instead of returning the image, or use live_view to let the user watch.

Instructions

PNG of the game viewport — canvas games, visual QA. Pass path to save it to disk instead of returning the image. One-shot: use live_view to let the user watch.

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

Input Schema

NameRequiredDescriptionDefault
pathNoWrite the PNG here and return the path instead of the image.
game_idNoSession id from open_game. Omit when a single game is open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • changedInput schema / properties / game_id / description
      Previous value: -"Session id returned by open_game."New value: +"Session id from open_game. Omit when a single game is open."
    • changedInput schema / properties / path / description
      Previous value: -"Optional output file path; when set, the PNG is written there and only the path is returned."New value: +"Write the PNG here and return the path instead of the image."
    • removedInput schema / required
      Removed value: -[
      -  "game_id"
      -]
  2. First observedv0.1.3

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key traits: the return is a PNG image, the viewport (not full page) is captured, and passing path writes to disk and returns the path instead of the image. It also flags the one-shot, non-streaming nature, which is the most important behavioral distinction. It omits any note on failure modes or whether capture is instantaneous of the current 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?

Two short sentences, front-loaded with the output format and scope, then the path behavior and the sibling routing rule. Every clause earns its place and nothing is repeated.

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 two-optional-parameter read tool with no annotations and no output schema, the description covers output format, disk-saving behavior, and the live-vs-snapshot distinction. It stops short of stating that an open game session is required or how game_id resolution works when multiple games exist.

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 both parameters are already documented in the schema, and the description's note about path largely restates it. The game_id parameter is never mentioned in the description, and no additional semantics (e.g. what happens if omitted with multiple games open) are added beyond the schema.

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 names the concrete output ("PNG of the game viewport") and scopes it to "canvas games, visual QA," so an agent knows exactly what artifact it gets. The verb is implicit rather than stated (it never says "capture" or "take"), which keeps it just short of a 5.

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 explicitly routes to the sibling: "One-shot: use live_view to let the user watch," giving a clear condition that selects the alternative. It does not spell out prerequisites (e.g. that a game must be open) or when a screenshot is the wrong choice for non-canvas games.

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