Skip to main content
Glama

screenshot

Capture the current PlayStation 2 display or read a rectangle of GS memory as an image, with optional base, format, position, and size parameters for inspecting frames and textures.

Instructions

A picture from the target, as an image. With no arguments, what's being shown.

An emulator or the mock knows what that is. A console can't ask the GS (its display registers are write-only), so it watches what the program writes to them, and reads back the frame buffer they describe: see display. A program that has written none of them gets the 640 by 448 at the start of the GS's memory.

Any argument given makes it a rectangle of the GS's memory instead, the others taking these defaults: base 0, the buffer's address in the GS's units of 64 words (a frame buffer's FBP times 32, or a texture's TBP as it is); buffer_width 640, in pixels, a multiple of 64; format ct32, or ct24, ct16, ct16s, z32, z24, z16, z16s; x and y 0; width 640 and height 448. That's for textures, the buffer not being shown, the depth buffer. The most at once is 1.3 MB of pixels: 640 by 512 at ct32. All of the GS's memory is 1024 by 1024 at ct32 from base 0, in pieces.

The picture is of one moment, read with the console's interrupts off: a program drawing at that moment may show a frame half drawn.

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
xNo
yNo
baseNo
widthNo
formatNo
heightNo
buffer_widthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does it well: it explains that the console cannot be queried directly because display registers are write-only, that the frame is reconstructed from what the program wrote, that a program that wrote nothing yields the 640x448 region at the start of GS memory, that the capture is a single instant taken with interrupts off so a frame may be half-drawn, and that the maximum capture is 1.3 MB. These are exactly the non-obvious behavioral facts an agent needs before trusting the result.

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

Conciseness3/5

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

The content is valuable but the structure is rambling: defaults are buried mid-paragraph in a run-on list, and asides like 'That's for textures, the buffer not being shown, the depth buffer' read as fragments. Nothing is outright wasted, but an agent must parse dense prose to recover the two modes and the parameter table.

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 7-parameter tool with no annotations and no output schema, the description covers modes, defaults, units, valid formats, size limits, and capture timing, which is close to complete. The notable omissions are the string form of `base` and any statement of the actual return payload beyond 'as an image'.

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 coverage is 0% across 7 parameters, so the description must compensate, and it largely does: it gives a default for every parameter (base 0, buffer_width 640, format ct32, x/y 0, width 640, height 448), explains base units as 64-word units (FBP times 32 for frame buffers, TBP as-is for textures), states that buffer_width must be a multiple of 64, and enumerates valid formats (ct32, ct24, ct16, ct16s, z32, z24, z16, z16s). The remaining gap is that the schema allows `base` as a string yet the description never explains the accepted string form, and the one-shot rule ('any argument given makes it a rectangle') is easy to misread.

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 opening sentence ('A picture from the target, as an image') states a concrete verb+resource, and the following paragraphs sharpen it into two distinct modes: no arguments = current display output, any argument = an arbitrary rectangle of GS memory. It also names the related tool `display` for the register side of things, giving partial sibling separation. The first line alone is vague ('what's being shown'), so the clarity only arrives after several sentences.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when each mode applies: bare call for 'what's being shown', argumented call 'for textures, the buffer not being shown, the depth buffer'. That is real routing guidance. However there is no explicit statement of when to prefer `display` or `dump_memory`/`read_memory` instead, and no statement of when a screenshot is inappropriate.

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