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

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# Test your app with large text, another location and a slow network

> box sets the simulator's text size, location and network before your app starts, and --vary takes several pictures with different settings after one build.

## Run it

```text theme={"system"}
box screenshot --text-size a11y-xxxl --location 37.5665,126.9780 --network 3g
```

The same options work with `box test` and `box run`:

```text theme={"system"}
box test --network offline
box run --text-size xl
```

\| Option | Values | iOS simulator |
\| --- | --- | --- | --- |
\| `--text-size` | `xs`, `s`, `m`, `l` (default), `xl`, `xxl`, `xxxl`, `a11y-m`, `a11y-l`, `a11y-xl`, `a11y-xxl`, `a11y-xxxl` | Dynamic Type size (`a11y-*` are the Accessibility sizes) |
\| `--location LAT,LNG` | degrees, e.g. `37.5665,126.9780` | simulated location |
\| `--network` | `3g`, `lte`, `offline`, `loss` | the Mac's link is slowed or cut while the app runs; the status bar shows 3G or LTE |
\| `--dark`, `--locale` | as before | | |

* `3g` is about 780 kbit/s down, 330 kbit/s up and 100 ms of delay. `lte` is about 12 Mbit/s with 50 ms. `loss` drops 10% of packets.
* `offline` blocks new web connections and name lookups while the app runs. The build and the upload of results are not affected.
* `box run --network offline` is refused: a run session needs the network so `box ui` can reach it.
* Every setting is put back when the job ends.

## Several pictures from one build

`--vary` adds a picture with other settings after the first one. The app is built and installed once, then started cold for each variant:

```text theme={"system"}
box screenshot --vary dark --vary locale=ar --vary "text-size=a11y-xxxl,network=offline"
```

Each `--vary` is a comma-separated list of `dark`, `light`, `locale=LANG`, `text-size=SIZE`, `network=3g|lte|offline|loss` and `location=LAT,LNG`, up to 8 variants. A variant starts from the job's own settings and changes only what it names.

The results are saved next to `screen.png`, which is the picture with the job's own settings:

```text theme={"system"}
screen.png
variant-01-dark.png
variant-02-ar.png
variant-03-a11y-xxxl-offline.png
variants.json
```

`variants.json` lists each picture with the settings it was taken with, and `ok: false` with an `error` for a variant that could not be captured. The other variants still run.

In MCP, the `screenshot` tool takes the same settings as `text_size`, `location` (`{"lat": 37.5, "lng": 127.0}`), `network` and `variants` (a list of objects with those keys plus `appearance` and `locale`). The `test` and `run` tools take `text_size`, `location` and `network`.

## What it costs

The job's normal minutes. Variants add the time each launch and picture takes, usually a few seconds each, with no second build.


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