capture_screen
Capture the client's screen from Garry's Mod and return a viewable image. Adjust scale and quality for speed, or capture a specific region for efficiency.
Instructions
Captures the client's screen on the next frame and returns it as a viewable image. Every byte travels in 7KB chunks paced by frame, so a full-resolution capture takes seconds and dominates any act-then-look loop: the default half scale at quality 60 is 4-6x cheaper and still legible for a Derma layout. Pass region (from read_panels' screen_x/screen_y) to capture just one panel. A capture that would exceed the client's channel budget is refused with its size rather than sent: a full-screen quality-80 capture measured 424KB and timed the client out of the server. Requires an active GMod client.
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": "capture_screen"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Downscale factor applied on the client before encoding. Use 1 to read small text. | |
| region | No | Screen region to capture. Free: render.Capture takes it natively. | |
| quality | No | JPEG quality. |