# GET /ui/screenshot

Retrieve the PNG belonging to an observation.

This is a device HTTP route. Set `DEVICE_URL` to your reachable device URL; [connection and examples](https://mcp.applesauceos.com/doc/http.md) explain how. Do not append this path to the public MCP URL.

## Parameters

| Parameter | Type | Meaning |
| --- | --- | --- |
| `observationId` | query string | Required ID captured with screenshot:true. |

## Response

PNG bytes; 404 if missing, expired or not requested.

## Example

```sh
curl --fail-with-body "$DEVICE_URL/ui/screenshot?observationId=OBSERVATION_ID" --output observation.png
```

## Notes

This is the cached observation image, not a fresh screenshot. Use /device/screenshot for a new full-screen capture.

Check the HTTP status and any JSON error. [HTTP workflows and error handling](https://mcp.applesauceos.com/doc/http-guide.md) explain shared limits. [All endpoints](https://mcp.applesauceos.com/doc/http.md).
