crosspad_screenshot
Captures a PNG screenshot of the running PC simulator’s full window or 320x240 LCD, saving it to disk or returning it inline with coordinate metadata for input mapping.
Instructions
[PC sim] Screenshot of the running PC simulator as a PNG, of the whole window or the 320x240 LCD, saved to disk or returned inline as an image block. By default it is saved under /screenshots/ and the reply carries metadata and file_path; set return_inline to get the image block instead. The reply carries lcd_origin [x, y] and scale, where the 320x240 panel sits in the image: a pixel (px, py) of a region='full' capture is LCD coordinate ((px - x) / scale, (py - y) / scale), what crosspad_input action=click takes by default; a region='lcd' capture is already in LCD space (origin [0, 0]).
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": "crosspad_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Simulator control port (default: CROSSPAD_REMOTE_PORT of this server, else 19840). Needed to address a second instance. | |
| region | No | 'full' (default) = the whole emulator window. 'lcd' = only the 320x240 screen, cropped by this server (the simulator's own lcd crop is 18 px stale). | full |
| filename | No | Custom filename (saved under <crosspad-pc>/screenshots/). Default: screenshot_<timestamp>.png. Ignored when return_inline=true. | |
| return_inline | No | false (default) = save to disk and return file_path. true = return the PNG as an image block you can see, with the metadata as compact JSON beside it; no file is written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| size | No | ||
| error | No | ||
| scale | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| notice | No | ||
| region | No | ||
| success | Yes | ||
| file_path | No | ||
| lcd_origin | No |