> ## 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

> box screenshot builds the app, opens it on an iPhone simulator and saves a picture of the first screen

> [!NOTE]
>
> **When to use it.** Your agent changed a screen and needs to see it, or you want the first screen in dark mode or another language before you push. One job builds the app, launches it on an iPhone simulator, waits for the screen to settle and saves a PNG

## Run it

```bash theme={"system"}
box screenshot shot.png
```

![The Tally example app as box screenshot saved it](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/media/docs/ios-screenshot.webp?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=aa54ef395f98cd222e72a26e26caf590)

This is what box printed for the public example app [SwiftieDev/SwiftUI-ToDos-App](https://github.com/SwiftieDev/SwiftUI-ToDos-App) (MIT)

```text theme={"system"}
box: queue: job bj__qsH_OZzl_1nb7G8 (screenshot, ios, $0.05/min) submitted
box: build: done in 22s
box: status: succeeded
box: bj__qsH_OZzl_1nb7G8 succeeded, 120s billed, $0.10
```

![The ToDos example app on an iPhone simulator: Reminders, My Lists and No Reminders, as box saved it](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/images/docs-feature-screenshot.png?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=46f0eb04e82494cde743c8f38d765deb)

The picture box saved, made smaller for this page

## Options

* `--dark` for dark appearance, `--locale ja` (or `ko_KR`, `ar`) for another language and region
* `--device "iPhone 17 Pro"` for another simulator from `box devices`
* `--record` also saves a video of the screen from launch to the picture, as `screen.mp4`
* `--compare last` compares with the last screenshot that succeeded and saves a diff picture per changed screen


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