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
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| base | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| buffer_width | No |