box
v0.1.52iOS and Android builds, tests, screenshots and UI checks for your agent, on a real Mac.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
build
Build an iOS project on a Mac or an Android project on Linux. Uploads only changed files. A `.box/setup` script in the project runs on the build machine before the build, once until its contents change, and a failing script stops the build. Android returns app-debug.apk. device_build=true makes an unsigned Release build (iOS: device-build.zip; Android: app-release-unsigned.apk and app-release.aab).
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device_build | boolean | |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
test
Build and run tests on the selected platform's simulator or emulator. A `.box/setup` script runs before the build, once until its contents change. screenshot=true (iOS) also launches the app after the tests and returns a screenshot, in the same job.
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
only | array | -only-testing values |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
screenshot | boolean | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
screenshot
Build, launch on a simulator and return a screenshot (PNG). appearance and locale show the app in dark mode or another language; record=true also saves a video (screen.mp4). compare=true also compares with this project's last succeeded screenshot: a diff picture per changed screen and one line saying whether the change looks intended or broken.
| Parameter | Type | Description |
|---|---|---|
appearance | string | |
bundle_id | string | |
compare | boolean | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
record | boolean | |
scheme | string | |
timeout_minutes | integer | |
wait_seconds | integer | |
xcode | string | Xcode version, e.g. 26.1 |
run
Build the app and keep it open on a simulator for this folder (no separate build before it). A `.box/setup` script runs before the build, once until its contents change. Two folders run at once, each on its own simulator; a third waits and says so, and does not stop the two. describe, tap, type, swipe, press_button and look act on this folder's simulator until its next build, test, run or stop.
| Parameter | Type | Description |
|---|---|---|
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
debug
Build and launch the app on a simulator under LLDB, stop at the breakpoints and return the stack and variables at each stop. breakpoints: File.swift:42 or a function name; print: variable paths to show (default: all locals); tap: an element to tap after launch to reach the code; stops: how many stops to record (default 1). Replaces the open run session. iOS only: Android cannot read variables back from the emulator yet.
| Parameter | Type | Description |
|---|---|---|
breakpoints * | array | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
print | array | |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
stops | integer | |
tap | object | |
timeout_minutes | integer | |
wait_seconds | integer | |
xcode | string | Xcode version, e.g. 26.1 |
ship
Archive a Release build of the iOS app, sign it and upload it to App Store Connect for TestFlight, with the user's own App Store Connect API key (Admin access (Xcode creates the distribution certificate with it)). The build number is set automatically. key_id, issuer_id and key_file default to the BOX_ASC_KEY_ID, BOX_ASC_ISSUER_ID and BOX_ASC_KEY_PATH env of box mcp; never put the .p8 text in a tool call, give its file path. group adds the build to a TestFlight group and notes sets its What to Test text, once App Store Connect has processed it. dry_run=true only checks the key and the files. R…
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
dry_run | boolean | |
group | string | |
issuer_id | string | |
key_file | string | path of the AuthKey_<key id>.p8 file |
key_id | string | |
notes | string | |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
team | string | Apple team id, when the project does not set one |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
web
Open a web page in Safari on a Mac and in Safari on an iPhone simulator and return both pictures (safari-mac.png, safari-ios.png) with the page's JavaScript errors, console.error lines and failed requests (web.json). url: an http(s) address; or serve (the command that starts your dev server, e.g. npm run dev) with port, and url a path on it (default /); the project folder is uploaded like a build and the command runs in it (node_modules are installed in the same job when missing). Errors and failed requests are listed for each browser (on the iPhone only for pages served over http, such as ser…
| Parameter | Type | Description |
|---|---|---|
dark | boolean | dark appearance on the iPhone simulator; Safari on the Mac stays light |
device | string | iPhone simulator name or udid from devices (default iPhone 17) |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
port | integer | |
project | string | |
serve | string | command that starts your dev server on the Mac, e.g. npm run dev |
timeout_minutes | integer | |
url | string | http(s) address, or with serve a path such as /checkout |
wait_for | string | CSS selector to wait for before the pictures |
width | integer | Mac window width (default 1280) |
devices
The simulators (iOS: name, runtime, udid) or emulator profiles (Android) a build machine has, for the device argument of test, run, screenshot and web. Starts a short job with no build.
| Parameter | Type | Description |
|---|---|---|
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
exec
Run a shell command in the project folder on the selected platform (bash).
| Parameter | Type | Description |
|---|---|---|
command * | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
describe
List the elements on the simulator screen, one short line each: role, label, value and the ref that tap's id takes. tree=true indents children under their parent.
| Parameter | Type | Description |
|---|---|---|
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
tree | boolean | |
xcode | string | Xcode version, e.g. 26.1 |
find
Print the one element whose label, value or ref contains text, in the same line describe prints.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
tap
Tap an element by id or label, or a point x,y.
| Parameter | Type | Description |
|---|---|---|
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
id | string | |
label | string | |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
x | number | |
xcode | string | Xcode version, e.g. 26.1 |
y | number |
type
Type text into the focused field (any language, Korean included).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
swipe
Swipe from one point to another.
| Parameter | Type | Description |
|---|---|---|
from * | array | |
to * | array | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
press_button
Press a hardware button: home, lock, side or siri.
| Parameter | Type | Description |
|---|---|---|
button * | string | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
look
A picture of the simulator screen right now (PNG).
| Parameter | Type | Description |
|---|---|---|
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
record_screen
Record the open app session's screen as a video: state start begins, state stop ends it and saves screen.mp4 (its path is in the answer). Needs a session from run.
| Parameter | Type | Description |
|---|---|---|
state * | string | |
appearance | string | |
bundle_id | string | |
configuration | string | Debug (default) or Release |
destination | string | xcodebuild -destination (default generic/platform=iOS Simulator) |
device | string | simulator name or udid from devices (default iPhone 17, newest runtime); Android: an emulator profile name |
locale | string | the app's language and region, e.g. ko_KR, ja, ar, zh-Hans |
path | string | Project folder on this machine (default: the folder box mcp was started in) |
platform | string | Overrides .box.toml and project detection; required when both platforms are found |
project | string | Project name on box (default: folder name) |
project_file | string | .xcodeproj or .xcworkspace path inside the project |
scheme | string | |
timeout_minutes | integer | |
xcode | string | Xcode version, e.g. 26.1 |
stop
Stop a job or the open app session (default: the last job).
| Parameter | Type | Description |
|---|---|---|
job | string |
report_problem
Tell the box team about a problem with box itself (not your app), with a job attached (default: the last job). To get a failed job's charge back, use report_job instead.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
job | string |
report_job
Report one job for a refund. Call it yourself when a failure looks like box's side and not the app's code: the Mac failed, the job timed out or never started, the connection dropped, or the charge looks wrong (a failed job that ends with 'looks like our side' is one). Do not report the app's own compile errors or failing tests. One report per job; the box team checks it within a few hours and the claims tool shows the result. Default job: the last one.
| Parameter | Type | Description |
|---|---|---|
reason * | string | what went wrong, one line |
job | string |
claims
Your job reports and their results: open, refunded with the amount, or declined with the reason.
status
Balance in US dollars, iOS and Android build minutes left at the configured per-started-minute rates, minutes used today, running and queued jobs, the open simulator session of each folder, and the last job.
why
Why a failed job failed (default: the last job): three lines, where (file:line), why and fix, read by AI from what only the Mac has (crash reports symbolicated with the build's dSYM, failing tests with their locations, the log). A failed build or test already ends with its one-line ai: answer when the account has it.
| Parameter | Type | Description |
|---|---|---|
job | string |
ai
box AI for this account: state on, off or status (default status). On by default; off sends no failed job's log, test results or screen to the AI models from then on (why and compare give no model answer).
| Parameter | Type | Description |
|---|---|---|
state | string |
logs
The log of a job (default: the last one) as text.
| Parameter | Type | Description |
|---|---|---|
job | string |
usage
Usage rows for a date range (YYYY-MM-DD).
| Parameter | Type | Description |
|---|---|---|
from | string | |
to | string |
login
Sign in. The first call returns a link for the user (they open it and press Continue with GitHub); call it again with wait_seconds (up to 50) and it returns as soon as they finish, so the user never has to say they are done. Ends with signed_in, pending or expired.
| Parameter | Type | Description |
|---|---|---|
wait_seconds | integer |
topup
The top-up link for the account wallet (opens nothing; give it to the user). Ask the user before making one: money is their decision, never top up by yourself. With wait_seconds (up to 50) it then returns once the balance goes up.
| Parameter | Type | Description |
|---|---|---|
wait_seconds | integer |