> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gym.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Screenshot

> Capture the current visual state of the VM desktop

Captures the current visual state of the VM desktop and returns binary image data. Use this to get a screenshot of what the agent would see.

<Note>
  Replace `VM_API_IP:PORT` with the actual IP and port of the VM's Desktop Environment API server (e.g., `r431.modal.host:41495`).
</Note>

## Response

Returns binary image data in PNG format. Save the response directly to a file.

<ResponseField name="[binary]" type="binary">
  PNG image data of the current desktop state
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "http://VM_API_IP:PORT/screenshot" --output screenshot.png
  ```
</RequestExample>

<ResponseExample>
  ```text Response theme={null}
  [Binary PNG image data - save to file]
  ```
</ResponseExample>
