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

# Screenshot

> Build, install, launch and save the screen in one command

> [!NOTE]
>
> **When to use it.** Your agent changed a screen and needs to see it. One command builds, installs, launches and saves the first screen

## Run it

```bash theme={"system"}
box screenshot --platform android
```

<video controls muted loop playsInline autoPlay preload="metadata" poster="/media/docs/android-screenshot-poster.webp" src="https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/media/docs/android-screenshot.mp4?fit=max&auto=format&n=ZFKGlbE4Q2bw14Om&q=85&s=f7b9e62859bd2524fdbaaa886fd705c6" width="1280" height="778" />

box screenshot --platform android installing the APK and saving the screen

Here on [android/compose-samples JetLagged](https://github.com/android/compose-samples/tree/main/JetLagged) (Apache 2.0). The emulator boot is not billed

```text theme={"system"}
$ box screenshot --platform android
box: queue: job bj_62GxzEFVpVFdUKgf (screenshot, android, $0.02/min) submitted
…
box: build: done in 11s
[box] emulator ready (4.5s)
Performing Streamed Install
Success
Starting: Intent { cmp=com.example.jetlagged/.MainActivity }
…
[box] screenshot box-out/screen.png
box: status: succeeded
box: results: saved to ./.box/out/bj_62GxzEFVpVFdUKgf/ (app-debug.apk, build.log, emulator.log, screen.png)
box: bj_62GxzEFVpVFdUKgf succeeded, 60s billed, $0.02
```

> [!NOTE]
>
> Job `bj_62GxzEFVpVFdUKgf` on a production Android machine: 60s billed, \$0.02

![The JetLagged sample on an Android emulator: the Sleep chart for the week, as box saved it](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/images/docs-feature-android.png?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=8bdaf164eac19c6eaafc4d27cde8449f)

The picture box saved, made smaller for this page. Pass a file name (`box screenshot --platform android out.png`) to save it somewhere else too


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.