Run it
box test and box run:
--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 | | |
3gis about 780 kbit/s down, 330 kbit/s up and 100 ms of delay.lteis about 12 Mbit/s with 50 ms.lossdrops 10% of packets.offlineblocks new web connections and name lookups while the app runs. The build and the upload of results are not affected.box run --network offlineis refused: a run session needs the network sobox uican 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:
--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:
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.